#2258·pry

Can't input Chinese or Unicode characters

Author: yetrunCreated Sep 20, 2022Updated May 4, 2024

I can't input Chinese charaters in my Mac OS system. It is normal in irb but abnormal in pry. When I input Chinese charaters, it outputs some invalid characters like:

U+FFE4\U+FFBD\U+FFA0\U+FFE5\U+FFA5\U+FFBD

My pry version is:

bash
$ pry -v
Pry version 0.14.1 on Ruby 2.7.6

And the visual behavior can be found in following video file:

https://user-images.githubusercontent.com/89437145/191208678-8b18a8e6-af8b-43ca-9764-ef601f8ba377.mov