[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('

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 strings