Re: XML and UTF-8

2007-11-10 Thread Valdas Jankūnas
I realize if i want unicode support i must use units Laz_DOM, Laz_XMLRead, Laz_XMLWrite instead of FP DOM, XMLRead, XMLWrite. -- Valdas Jankūnas _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as

Re: XML and UTF-8

2007-11-10 Thread Vincent Snijders
Valdas Jankūnas schreef: I realize if i want unicode support i must use units Laz_DOM, Laz_XMLRead, Laz_XMLWrite instead of FP DOM, XMLRead, XMLWrite. Which is contrary to what I would expect (although I think it may be true). The FP units use widestring internally, the Lazarus units

Re: XML and UTF-8

2007-11-10 Thread Mattias Gaertner
On Sat, 10 Nov 2007 13:25:52 +0100 Vincent Snijders [EMAIL PROTECTED] wrote: Valdas Jankūnas schreef: I realize if i want unicode support i must use units Laz_DOM, Laz_XMLRead, Laz_XMLWrite instead of FP DOM, XMLRead, XMLWrite. Which is contrary to what I would expect (although I

Re: XML and UTF-8

2007-11-10 Thread Valdas Jankūnas
Vincent Snijders rašė: Valdas Jankūnas schreef: I realize if i want unicode support i must use units Laz_DOM, Laz_XMLRead, Laz_XMLWrite instead of FP DOM, XMLRead, XMLWrite. Which is contrary to what I would expect (although I think it may be true). The FP units use widestring internally,

Re: XML and UTF-8

2007-11-10 Thread Felipe Monteiro de Carvalho
On Nov 10, 2007 3:31 PM, Mattias Gaertner [EMAIL PROTECTED] wrote: The source code is UTF-8. Are you sure, that cwstrings works under linux with an ISO charset as default? And what about windows, if the codepage is 1251 (or whatever non UTF-8)? Under windows it will usually work because of a

Re: XML and UTF-8

2007-11-10 Thread Michael Van Canneyt
On Sat, 10 Nov 2007, Mattias Gaertner wrote: On Sat, 10 Nov 2007 15:25:05 +0100 (CET) Michael Van Canneyt [EMAIL PROTECTED] wrote: On Sat, 10 Nov 2007, Valdas Jankūnas wrote: I realize if i want unicode support i must use units Laz_DOM, Laz_XMLRead, Laz_XMLWrite instead of

Re: XML and UTF-8

2007-11-10 Thread Marco van de Voort
On Sat, 10 Nov 2007, Mattias Gaertner wrote: The source code is UTF-8. Are you sure, that cwstrings works under linux with an ISO charset as default? And what about windows, if the codepage is 1251 (or whatever non UTF-8)? This, I don't know. cwstrings is for Linux only. Afaik it

Re: XML and UTF-8

2007-11-10 Thread Michael Van Canneyt
On Sat, 10 Nov 2007, Felipe Monteiro de Carvalho wrote: On Nov 10, 2007 3:31 PM, Mattias Gaertner [EMAIL PROTECTED] wrote: The source code is UTF-8. Are you sure, that cwstrings works under linux with an ISO charset as default? And what about windows, if the codepage is 1251 (or whatever

Re: XML and UTF-8

2007-11-10 Thread Felipe Monteiro de Carvalho
On Nov 10, 2007 5:49 PM, Michael Van Canneyt [EMAIL PROTECTED] wrote: As far as I know, FPC has no support for a BOM marker at all ? That would be inconsistent with my tests until now. http://www.freepascal.org/mantis/view.php?id=9058 -- Felipe Monteiro de Carvalho

Re: XML and UTF-8

2007-11-10 Thread Michael Van Canneyt
On Sat, 10 Nov 2007, Felipe Monteiro de Carvalho wrote: On Nov 10, 2007 5:49 PM, Michael Van Canneyt [EMAIL PROTECTED] wrote: As far as I know, FPC has no support for a BOM marker at all ? That would be inconsistent with my tests until now.

[lazarus] XML and UTF-8

2007-11-09 Thread Valdas Jankūnas
Hello, when i saving unicode text to file with TXMLConfig (from Laz_XMLCfg) i get correct results (code below, first part), but if use TXMLDocument (secont part of code) i get messed unicode text in file. Why?? What i doing wrong? // code (on form placed two labels): unit Unit1; {$mode