Re: UTF-8 encoding vs UTF-32

new topic     » goto parent     » topic index » view thread      » older message » newer message

I should point out that there are better ways to specify UTF in your source code than the example I gave previously:

object soccer = "Fu\xc3\x9fb\xc3\xa4lle" -- utf-8 
-- or: "Fu\u00c3\u009fb\u00c3\u00a4lle"  -- unicode 
-- or: simply type it in or copy any special chars from your character map program, etc. 
 
include GtkEngine.e 
 
constant win = create(GtkWindow) 
    set(win,"border width",10) 
    set(win,"title"," UTF Test ") 
    set(win,"icon","fonts") 
    connect(win,"destroy","Quit") 
 
constant lbl = create(GtkLabel) 
    set(lbl,"text",soccer & " isn't Football!") 
    set(lbl,"font","16") 
    add(win,lbl) 
 
show_all(win) 
main() 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu