Mirco Bakker
2006-12-07 02:17:32 UTC
Hi
After reading the UTF-8 and Unicode FAQ I tried to programm a small X application that displays a variety of chars from different charsets. While most european charsets (e.g German äüö, French éèà) work fine, russian and asian charsets aren't displayed (or scrambeled).
The programm (written in C) uses only the standard Xlib. The writing is done using XmbDrawString() (AFAIK function of choice). I also tried Xutf8DrawString (X_HAVE_UTF8_STRING is set) with the same effect. After Googeling for hours I found a few outdated reports that Xlib has a Bug handling UTF-8 Strings (or Fonts). Is this still true or is my code crap?
TIA, Mirco
After reading the UTF-8 and Unicode FAQ I tried to programm a small X application that displays a variety of chars from different charsets. While most european charsets (e.g German äüö, French éèà) work fine, russian and asian charsets aren't displayed (or scrambeled).
The programm (written in C) uses only the standard Xlib. The writing is done using XmbDrawString() (AFAIK function of choice). I also tried Xutf8DrawString (X_HAVE_UTF8_STRING is set) with the same effect. After Googeling for hours I found a few outdated reports that Xlib has a Bug handling UTF-8 Strings (or Fonts). Is this still true or is my code crap?
TIA, Mirco
--
"Ein Herz für Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de
Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht!
"Ein Herz für Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de
Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht!