On 2016-04-14 09:16, Michael Schnell wrote:
> For a test I did   result := StringCodePage('äü');

If you as a programmer knows the unit is saved in UTF-8 encoding, then
add {$codepage utf8} to the top of the unit. That tells the compiler how
to interpret string constants in that unit (without the need for any
guessing).


Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to