[Lazarus] DOM and GTK 1&2: how to set encoding?

Marc Santhoff M.Santhoff at web.de
Mon Apr 27 05:20:36 CEST 2009


Am Freitag, den 17.04.2009, 16:05 +0200 schrieb Mattias Gaertner:
> On Fri, 17 Apr 2009 15:13:37 +0200
> Marc Santhoff <M.Santhoff at web.de> wrote:
> 
> >[...]
> > 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.
> >[...]> How can make GTK 2 show those chars as in GTK 1?
> 
> convert the xml file to UTF-8
> 
> OR
> 
> convert the xml file before passing it to the xml reader
> 
> OR
> 
> convert the strings before passing them to the LCL
> 
> See unit lconvencoding GuessEncoding and ConvertEncoding.

I like cookbook-style compressed receipes. :)

Many Thanks,
-- 
Marc Santhoff <M.Santhoff at web.de>




More information about the Lazarus mailing list