Re: UTF-8 encoding vs UTF-32
- Posted by irv Aug 10, 2014
- 1575 views
I know very little about utf-8 (or 16, etc), but the following works properly with EuGTK:
object str = U"" & " Katakana BO\n" & U"" & " Khmer NYO\n" & U"" & " Laotian pho sung\n" & U"" & " Greek Psi \n" & U"" & " Geometric shape\n" & U"" & " Face screaming\n" & U"" & "?" include GtkEngine.e constant win = create(GtkWindow) connect(win,"destroy","Quit") constant lbl = create(GtkLabel) set(lbl,"markup",str) set(lbl,"font","24") add(win,lbl) show_all(win) main()
ボ Katakana BO ញ Khmer NYO ຜ Laotian pho sung ψ Greek Psi ◍ Geometric shape 😱 Face screamingGiven a text editor that can handle the desired character set, you can enter the text directly, without having to use the U"" formats. AFAIK, GTK can handle text inputs using whatever keyboard/language setup you may have. String functions: comparisons, sorting, etc. are most likely not going to work.