Felipe Monteiro de Carvalho schrieb:
>> The default code page used by FPC is 8859-1. However, the scanner
>> detects the UTF-8 marker if present, and when it finds it then it
>> switches the code page to UTF-8. You can also set the code page
>> manually to UTF-8 using {$codepage utf-8}.
> 
> Why does the codepage matter in this case? I would imagine that FPC
> just reads my string as a bunch of bytes... fpc doesn't need to
> perform any operations with it.

The compiler takes care of the codepage when reading string constants as
widestrings.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to