Ruby curses problem

code like follow:

require “curses”
include Curses

init_screen
begin
crmode
echo
getstr
noecho
ensure
close_screen
end

i input some chinese word like “ä½ å¥½”, it shows the wrong word “æš®” not
“ä½ å¥½”!

how can i get the right chinese word “ä½ å¥½” when i input just like “ä½ å¥½”!

Thanks a lot! I am waiting for the responseble!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs