[cairo] Accented characters and guimette
Elmar Braun
Elmar.Braun at sh-p.de
Mon Oct 11 02:39:19 PDT 2010
> Justi, a simple context.ShowText("é") or context.ShowText("»"); followed by
> any other drawing operations should show it.
Did you note that Cairo demands UTF-8 encoded strings?
http://cairographics.org/manual/cairo-text.html#cairo-show-text
(That's the C API; not sure whether your .NET binding does any conversion.)
Latin small letter e with acute is "\xC3\xA9" in UTF-8, written as a C string. Your "é" might be interpreted as "\xE9", which is that letter's encoding in ISO-8859-1, or "\xE9\x00" in UTF-16.
Best regards,
Elmar
More information about the cairo
mailing list