# Can't input chinese in fox gui?

**URL:** <https://www.ruby-forum.com/t/cant-input-chinese-in-fox-gui/189371>\
**Category:** FXRuby\
**Created:** [May 30, 2010, 2:57am UTC](https://www.ruby-forum.com/t/cant-input-chinese-in-fox-gui/189371 "2010-05-30T02:57:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luofeiyu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9de0a6/32.png) [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Post date:** [May 30, 2010, 2:57am UTC](https://www.ruby-forum.com/t/cant-input-chinese-in-fox-gui/189371/1 "2010-05-30T02:57:13Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![luofeiyu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9de0a6/32.png) [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Post date:** [May 30, 2010, 9:51am UTC](https://www.ruby-forum.com/t/cant-input-chinese-in-fox-gui/189371/2 "2010-05-30T09:51:31Z")

</div>

there is an simple program,

require ‘rubygems’  
require ‘fox16’  
require ‘jcode’  
$KCODE = ‘u’  
include Fox  
application = FXApp.new(“æµ‹è¯•”, “æµ‹è¯•”)  
main = FXMainWindow.new(application, “Hello”, nil, nil, DECOR\_ALL)  
FXButton.new(main, “&æµ‹è¯•, æµ‹è¯•!”, nil, application, FXApp::ID\_QUIT)  
application.create()  
main.show(PLACEMENT\_SCREEN)  
application.run()

æµ‹è¯• 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?
