[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Xlib UTF-8 support
Two things. First, I believe Pango is becoming the defacto method for
rendering non-Latin1 text in general purpose applications (I've never
used it but from installing apps I can see more and more apps depend on
it). Second, make sure you're in the UTF-8 locale. If you're not,
UTF-8 text will not be rendered properly.
Mike
On Thu, 07 Dec 2006 03:17:32 +0100
"Mirco Bakker" <lister1@xxxxxxx> wrote:
> 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
>
>
> --
> "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!
>
> --
> Linux-UTF8: i18n of Linux on all levels
> Archive: http://mail.nl.linux.org/linux-utf8/
>
--
Michael B Allen
PHP Active Directory SSO
http://www.ioplex.com/
--
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/