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
LAPC> Any hint on how to get UTF8 encoded strings at runtime?

Check your current source code format, this means the encoding of your
.pas file, quite sure it is still UTF-8, so simply:

Key := 'ç';

Right click -> File settings -> Encoding

-- 
Best regards,
 JoshyFun

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to