Re: can glib support other character set?



yuanzhenzhen 21cn com writes:             
            I don't know whether gdk supports other character set , for exemple "utf-8".What should I do to 
support other 
character  other than  iso8859-1?


GDK 1.2 always operates in the encoding of the current locale. GDK 2.0
(unstable version) always operates in UTF-8.
 
To support other character sets, you have to load a font in the
encoding for that character set. There is not a convenient way to do
this, unfortunately. GTK 2 solves the problem.

             but when I compile the program, it reports: undefined
             reference to g_convert.I don't know why?


You are probably reading the documentation for GLib unstable version
(1.3/2.0) and actually compiling your program using the stable version
(1.2). 1.2 does not have g_convert().

Havoc





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]