cuser-interfacetextcharacter-encodingmotif

Motif programming and UTF-8


I'm new to Motif programming and I want to use UTF-8 encoding.

I've tried XtSetLanguageProc (NULL, NULL, NULL); but when I read a file in Motif (editor text-like in 6A volume motif programming), I've got problems with accented characters.

I had to use setlocale()?

thanks!


Solution

  • With Motif, you have to switch to the correct font for the languages that you are using. There is currently no single UTF-8 font that has full support for all languages.

    If there is more to your problem you might want to ask it on MotifZone http://www.motifzone.com/forum/unicode-support since Motif is not a commonly used toolkit anymore.