Re: [fpc-pascal] How to get programatically a UTF8 encoded string?

2009-07-22 Thread JoshyFun
Hello FPC-Pascal, Tuesday, July 21, 2009, 9:33:20 PM, you wrote: LAPC> I tried to get UTF8 encoded strings programatically by doing LAPC> Key := UTF8Encode('ç'); LAPC> Str := UTF8Encode('Ç'); LAPC> but when i test the code below it will fail, unlike when using know UTF8 LAPC> encoded stri

[fpc-pascal] How to get programatically a UTF8 encoded string?

2009-07-22 Thread Luiz Americo Pereira Camara
I tried to get UTF8 encoded strings programatically by doing Key := UTF8Encode('ç'); Str := UTF8Encode('Ç'); but when i test the code below it will fail, unlike when using know UTF8 encoded strings if WideCompareText(UTF8Decode(Key), UTF8Decode(Str)) = 0 then WriteLn(' WideComp

Re: [fpc-pascal] Case insensitive comparison of strings with non-ascii characters

2009-07-22 Thread Luiz Americo Pereira Camara
Luiz Americo Pereira Camara escreveu: JoshyFun escreveu: Hello FPC-Pascal, Tuesday, July 21, 2009, 6:45:03 AM, you wrote: LAPC> I'm trying to fix bug LAPC> http://bugs.freepascal.org/view.php?id=14135 but LAPC> could not get a way to do case insensitive comparison of UTF8 strings LAPC> with