qiaogang chen wrote:
> Hello
> I am using fltk 1.19 to develop an application for chinese users,under
> windows. In my apps window, Fl_Input , Fl_Text_Editor is used. It is good to
> edit english characters ,but when enter chinese character, the cursor is
> position at wront place ,so if I want to move cursor , is will display mess
> text. Notice, the chinese character is two byte width, so when dealing with
> chinese characters, it need to move 2 byte per step. How can I fix the
> problem.
Only 1.3.x supports UTF8 strings.
The 1.1.x series doesn't officially support UTF8, although there is
an unoffical 1.1.x-utf8 hack out there from Ian Macarthur, eg:
http://www.imm.uklinux.net/fltk/fltk118-utf8-2007-10-11.tar.bz2
But you should probably use 1.3.x, as that's where the current
support stream is going. I've tested Japanese characters with
1.3.x on windows (for labels anyway) and it works well:
http://seriss.com/people/erco/fltk/tmp/input-japanese-with-fltk-1-3-x-10-27-2008.jpg
This shows Fl_Box labels and the HTML oriented Fl_Help_View supporting
non-roman character sets.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk