Re: I18N text (Input methods?)



Ian Britten <britten caris com> writes: 
> Unfortunately, I'm kindof unsure how to proceed from here...
> I look down at my latin keyboard, knowing that my program will display
> Chinese (for example), if I only knew how to get the Unicode bytes into
> it...  :-(

You essentially want to copy gtkentry.c, gtktext.c as far as setting
up the input method, and then you need to convert the text from the
input method from locale encoding into Unicode. This will involve
iconv(), or in glib 2.0 you would use g_iconv() or g_convert() or 
g_locale_to_utf8().

Havoc



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