From: Bryan Lockwood Date: 2013-06-30T18:06:17+09:00 Subject: Readline differences from 1.9.2 to 1.9.3? Here's my test program: ---------------------------------------------- #!/usr/bin/env ruby require 'readline' ans = Readline.readline("? ", false) puts ans puts ans. length ---------------------------------------------- and here's my test session with Ruby 1.9.2 and Ruby 1.9.3 11:00 cards:>rvm use 1.9.2 Using /Users/bryanloc/.rvm/gems/ruby-1.9.2-p320 11:00 cards:>./tester.rb ? 出 出 1 11:00 cards:>rvm use 1.9.3 Using /Users/bryanloc/.rvm/gems/ruby-1.9.3-p392 11:01 cards:>./tester.rb ? \U+FFE5\U+FFBA 0 OK, am I doing something wrong, or do I need to do something special to get Chinese characters? A simple call of gets(), i.e. not using readline, works fine, and returns the Chinese character. Thanks in advance, Bryan