Forum: FXRuby can't input chinese in fox gui?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Pen T. (Guest)
on 2010-05-30 04:57
hi ,everyone,i made a gui with fxruby,there is a problem, can't input
chinese in the fox gui ,how to solve the problem?
Pen T. (Guest)
on 2010-05-30 11:51
there  is an  simple program,

require 'rubygems'
require 'fox16'
require 'jcode'
$KCODE = 'u'
include Fox
application ="测试", "测试")
main =, "Hello", nil, nil, DECOR_ALL), "&测试, 测试!", nil, application, FXApp::ID_QUIT)

测试  is the meaning  of  "test",
when i run the program, an output  :
Warning: $KCODE is NONE.

chinese character can't display on the window,there are many boxes  on
the window!

what's the matter?
This topic is locked and can not be replied to.