[fpc-pascal] XML with lazarus UTF8 problem

2009-07-06 Thread Henrik Genssen
Hi, I am using DOM and XMLRead units for parsing XML files. The XML file is UTF-8. The text-nodes in the file contain german umlaute. The file is valid XML! When it try to get the textnodes containing german umlaute, I get an empty string, although the length of the string seems to be correct.

Re: [fpc-pascal] XML with lazarus UTF8 problem

2009-07-06 Thread Valdas Jankūnas
Henrik Genssen rašė: Hi, I am using DOM and XMLRead units for parsing XML files. The XML file is UTF-8. The text-nodes in the file contain german umlaute. The file is valid XML! When it try to get the textnodes containing german umlaute, I get an empty string, although the length of the

Re: [fpc-pascal] XML with lazarus UTF8 problem

2009-07-06 Thread JoshyFun
Hello FPC-Pascal, Monday, July 6, 2009, 8:13:56 AM, you wrote: HG I am using DOM and XMLRead units for parsing XML files. HG The XML file is UTF-8. The text-nodes in the file contain german umlaute. HG The file is valid XML! I do not work with XML DOM but if the file is UTF-8 and the text node

RE: Re: [fpc-pascal] XML with lazarus UTF8 problem

2009-07-06 Thread Henrik Genssen
As I said, the file is valid XML. It parses well in: - Firefox - IE - libxml - msxml regards Hinnack reply to message: date: 06.07.2009 13:17:05 from: JoshyFun joshy...@gmail.com to: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org subject: Re: [fpc-pascal] XML with lazarus UTF8

RE: Re: [fpc-pascal] XML with lazarus UTF8 problem

2009-07-06 Thread Michael Van Canneyt
On Mon, 6 Jul 2009, Henrik Genssen wrote: As I said, the file is valid XML. No-one disputes this, the question is how the codepage is used in the rest of your program. You may need to do a manual transformation e.g. to widestrings in order to be able to use the XML objects in your

RE: Re: [fpc-pascal] XML with lazarus UTF8 problem

2009-07-06 Thread Henrik Genssen
using UTF8Encode / UTF8Decode does not make any change I used that already - even leaving it out does not work. regards Hinnack reply to message: date: 06.07.2009 12:42:46 from: Valdas Jankunas zmu...@gmail.com to: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org subject: Re:

RE: Re: [fpc-pascal] XML with lazarus UTF8 problem

2009-07-06 Thread Marc Santhoff
Moin Hinnack, Am Montag, den 06.07.2009, 11:28 +0200 schrieb Henrik Genssen: using UTF8Encode / UTF8Decode does not make any change I used that already - even leaving it out does not work. I have used that routines for using XML files encoded similarly to yours. After reading the file to a

RE: RE: Re: [fpc-pascal] XML with lazarus UTF8 problem

2009-07-06 Thread Henrik Genssen
Moin, Moin, sounds interesting. Where do I get cwstring? on this thread someone pointed out, that one needs it only on linux - do I need it on darwin, too? http://lists.freepascal.org/lists/fpc-devel/2007-November/012047.html Why do I have to Encode and not to Decode UTF8 if the file is UTF8.

RE: RE: Re: [fpc-pascal] XML with lazarus UTF8 problem

2009-07-06 Thread Marc Santhoff
Am Montag, den 06.07.2009, 12:12 +0200 schrieb Henrik Genssen: Moin, Moin, sounds interesting. Where do I get cwstring? It comes with fpc, you only need to activate it. on this thread someone pointed out, that one needs it only on linux - do I need it on darwin, too?

Re[4]: [fpc-pascal] XML with lazarus UTF8 problem

2009-07-06 Thread JoshyFun
Hello FPC-Pascal, Monday, July 6, 2009, 12:12:18 PM, you wrote: HG sounds interesting. Where do I get cwstring? HG on this thread someone pointed out, that one needs it only on HG linux - do I need it on darwin, too? HG http://lists.freepascal.org/lists/fpc-devel/2007-November/012047.html HG Why

[fpc-pascal] New Allegro.pas release

2009-07-06 Thread Guillermo Martínez Jiménez
I've uploaded two now releases of Allegro.pas. Allegro.pas is a wrapper to use Allegro with Pascal compilers (Delphi, Free Pascal, etc). Allegro is a cross-platform library intended for use in computer games and other types of multimedia programming. The new release (4.4.0 Alpha2) fixes a bug,

[fpc-pascal] Re: New Allegro.pas release

2009-07-06 Thread Guillermo Martínez Jiménez
There are an error in my last message. The actual Allegro.pas' project website is at http://allegro-pas.sourceforge.net/ Sorry Guillermo Ñuño Martínez ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org