[fpc-pascal] FPC 3: disabling automatic AnsiString codepage conversionx
Michael Van Canneyt
michael at freepascal.org
Mon Apr 4 12:07:11 CEST 2016
On Mon, 4 Apr 2016, Graeme Geldenhuys wrote:
> On 2016-04-04 10:39, tobiasgiesen at gmail.com wrote:
>> It says "On Linux and Mac OS X UTF-8 is typically the system codepage, so the RTL uses
>> here by default CP_UTF8."
>> Not on my Mac. DefaultSystemCodePage is 20127 before I set it to 65001.
> Indeed, and on my FreeBSD system DefaultSystemCodePage returns 0.
> So the "typically" seems more like "unlikely in most cases".
if you are dealing with UTF8/UnicodeString and other codepages, it is
quite likely, and preferred, that you have unit cwstring included.
More information about the fpc-pascal