<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 04/13/2016 09:04 AM, Michael Van
Canneyt wrote:<br>
</div>
<blockquote
cite="mid:alpine.DEB.2.10.1604130904180.1435@home.telenet.be"
type="cite">
It uses the DefaultSystemcodepage. If the system codepage is UTF8,
then
<br>
it will use UTF8.
<br>
<br>
</blockquote>
(Sorry for replying yet another answer to the same message of yours)<br>
<br>
<br>
<a class="moz-txt-link-freetext" href="http://wiki.freepascal.org/Better_Unicode_Support_in_Lazarus">http://wiki.freepascal.org/Better_Unicode_Support_in_Lazarus</a> says:<br>
<blockquote type="cite">
On the other hand a <b>String</b> is assumed at compile time to
have <i>DefaultSystemCodePage</i> (CP_ACP). <i>DefaultSystemCodePage</i>
is defined at run time, so the compiler conservatively assumes
that <i>String</i> and <i>UTF8String</i> have different
encodings.</blockquote>
<br>
So I was wrong assuming from your message that DefaultSystemcodepage
is the default encoding for the type "String" (and with that for
TStrings and with that for TSringList). <br>
<br>
Now I still don't know whether/how the default encoding for the type
"String (which I still assume is defined when building the
compiler) is depending on the arch/OS the compiler is built for. (I
only tested on Linux and here it rather obviously is UTF8. I assume
on Windows it's UTF16 for Delphi compatibility). <br>
<br>
-Michael<br>
</body>
</html>