[Lazarus] DOM and GTK 1&2: how to set encoding?
Mattias Gaertner
nc-gaertnma at netcologne.de
Fri Apr 17 16:05:03 CEST 2009
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.
Mattias
More information about the Lazarus
mailing list