Re: [fpc-pascal] problems using utf8toansi

2007-12-10 Thread Marc Santhoff
Am Montag, den 10.12.2007, 11:10 +0100 schrieb Jonas Maebe: > On 10 Dec 2007, at 08:43, Marc Santhoff wrote: > > Confusing ... > > The system and sysutils units contain bare metal widestring support: > i.e., widestring support which only works (as far as alphabetical > ordering, upper/lowerca

Re: [fpc-pascal] problems using utf8toansi

2007-12-10 Thread Jonas Maebe
On 10 Dec 2007, at 08:43, Marc Santhoff wrote: You can compile with -al and search for CWSTRING in the assembler file generated for your main program. Since that unit has an initialization section, it will be in the init/final table if it's included somewhere. Hm, that's funny, the strin

Re: [fpc-pascal] problems using utf8toansi

2007-12-09 Thread Marc Santhoff
Am Sonntag, den 09.12.2007, 21:38 +0100 schrieb Jonas Maebe: > You can compile with -al and search for CWSTRING in the assembler file > generated for your main program. Since that unit has an initialization > section, it will be in the init/final table if it's included somewhere. Another try:

Re: [fpc-pascal] problems using utf8toansi

2007-12-09 Thread Marc Santhoff
Am Sonntag, den 09.12.2007, 21:38 +0100 schrieb Jonas Maebe: > On 07 Dec 2007, at 20:01, Marc Santhoff wrote: > > > Am Freitag, den 07.12.2007, 14:00 +0100 schrieb Jonas Maebe: > >> > > > >> Also, if you do not use the cwstring unit, a lot of things will not > >> work with widestrings under *nix (

Re: [fpc-pascal] problems using utf8toansi

2007-12-09 Thread Jonas Maebe
On 07 Dec 2007, at 20:01, Marc Santhoff wrote: Am Freitag, den 07.12.2007, 14:00 +0100 schrieb Jonas Maebe: Also, if you do not use the cwstring unit, a lot of things will not work with widestrings under *nix (including FreeBSD). The fact that some chars such as Umlauts and 'ß' work sugges

Re: [fpc-pascal] problems using utf8toansi

2007-12-09 Thread Marc Santhoff
Am Freitag, den 07.12.2007, 14:00 +0100 schrieb Jonas Maebe: > On 07 Dec 2007, at 13:17, Marc Santhoff wrote: > > >> On which platform with which locale/codepage? If on *nix, are you > >> using the cwstring unit? > > > > I'm using FreeBSD with ISO8859-1 or 15 and do not use cwstring > > explicitly

Re: [fpc-pascal] problems using utf8toansi

2007-12-07 Thread Jonas Maebe
On 07 Dec 2007, at 13:17, Marc Santhoff wrote: On which platform with which locale/codepage? If on *nix, are you using the cwstring unit? I'm using FreeBSD with ISO8859-1 or 15 and do not use cwstring explicitly. Also, if you do not use the cwstring unit, a lot of things will not work wit

Re: [fpc-pascal] problems using utf8toansi

2007-12-07 Thread Jonas Maebe
On 07 Dec 2007, at 13:17, Marc Santhoff wrote: Am Freitag, den 07.12.2007, 11:28 +0100 schrieb Jonas Maebe: On 07 Dec 2007, at 07:43, Marc Santhoff wrote: dbg: Description testing, one, two ... ? à dbg: Using german umlauts the same happens, the string is empty. When feeding in plain asci

Re: [fpc-pascal] problems using utf8toansi

2007-12-07 Thread Marc Santhoff
Am Freitag, den 07.12.2007, 11:28 +0100 schrieb Jonas Maebe: > On 07 Dec 2007, at 07:43, Marc Santhoff wrote: > > > > > dbg: Description > > testing, one, two ... > > ? à > > dbg: > > > > > > Using german umlauts the same happens, the string is empty. When > > feeding > > in plain ascii the ou

Re: [fpc-pascal] problems using utf8toansi

2007-12-07 Thread Jonas Maebe
On 07 Dec 2007, at 07:43, Marc Santhoff wrote: dbg: Description testing, one, two ... ? à dbg: Using german umlauts the same happens, the string is empty. When feeding in plain ascii the output is okay, the string is actually filled. On which platform with which locale/codepage? If on *

Re: [fpc-pascal] problems using utf8toansi

2007-12-07 Thread Marc Santhoff
Am Freitag, den 07.12.2007, 07:43 +0100 schrieb Marc Santhoff: > what's going on here? Forget about it, it's certainly the DOM implementation doing the decoding beforhand, nothing to do after that. :P The open question left is the euro sign, I'll care about that later ... Marc

[fpc-pascal] problems using utf8toansi

2007-12-06 Thread Marc Santhoff
Hi, when using system.utf8toansi() the result is an empty string as soon as I put in some special chars: {$H+} ... fDescription: String; ... function sDecode(sin: string): string; inline; begin result := utf8toansi(sin); end; ... fDescription := sDecode(Item[i].FirstChild.NodeVal