[fpc-pascal] FPC 3 regression: cannot use TStringList for UTF-8 data any more?

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Fri Apr 15 10:32:55 CEST 2016


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



More information about the fpc-pascal mailing list