[fpc-pascal] How to get programatically a UTF8 encoded string?
JoshyFun
joshyfun at gmail.com
Thu Jul 23 00:38:50 CEST 2009
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
More information about the fpc-pascal
mailing list