thank you all very much!
I solve the problem with another way to get the chinese word input by 
using readline.so!

-- 
Posted via http://www.ruby-forum.com/.