[Lazarus] Dragging documented

Hans-Peter Diettrich DrDiettrich1 at aol.com
Sat Apr 18 01:56:54 CEST 2009


Hi,

I have a DOM model read from a xml file that has no encoding named
inside it. The var TXMLDocument.Encoding is empty after the file is
loaded.

WHen compiling the program for GTK 1 the german umlauts are shown
correctly, I assume GTK 1 defaults to system encoding (or so ;). The
files have been written in a GUI using the same system encoding
(ISO-8859-1).

When compiled for GTK 2 the umlauts are not shown corrctly and on the
console messages like this appear when handing over strings to gtk
widgets:

Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_t ext()

When the texts are not used as caption but as text inside a memo, the
warning differs:

Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion `g_utf8_val
idate (text, len, NULL)' failed

and the strings in question are left out up to the next newline.

The encoding inside the file löooks like this:

Stichwörter:

for the Letter "ö".

How can make GTK 2 show those chars as in GTK 1?


Regards,
-- 
Marc Santhoff <M.Santhoff at web.de>





More information about the Lazarus mailing list