Re: [fpc-pascal] Re: Widestrings length and character iteration

2007-05-10 Thread Daniël Mantione
Op Wed, 9 May 2007, schreef Christos Chryssochoidis: > I called setCWideStringManager() from my code, but it did not had any effect. > A call to utf8encode() is still needed from proper output. It probably means the widestring manager thinks your system is iso-8859-1 encoded. If you think this

Re: [fpc-pascal] Re: Widestrings length and character iteration

2007-05-09 Thread Daniël Mantione
Op Wed, 9 May 2007, schreef Christos Chryssochoidis: > OK, I figured out what happened. The source file was saved in UTF-8 encoding, > but I hadn't put in my source file the compiler directive {$CODEPAGE UTF8}. > After including this directive in my code almost everything worked fine: > length()

Re: [fpc-pascal] Re: Widestrings length and character iteration

2007-05-08 Thread Daniël Mantione
Op Mon, 7 May 2007, schreef Christos Chryssochoidis: > Daniël Mantione wrote: > > > > Not possible, a widestring is UCS-2/UTF-16. > > I defined a widestring with 7 characters (code points), and the length() > function returned the value 15. Of the 7 code points of that widestring only > one o