<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=x-mac-ce" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<blockquote cite="mid:4D2ADCE5.1070907@lumino.de" type="cite">AFAIK, in
current Delphi (which I don't have) a "String" is a variable that can
contain dynamically codedÊ informations (such as locally coded 8-Bit
ANSI, UTF-8, UTF-16, ...) and - of course - know which code it holds.
  <br>
</blockquote>
I understand "By default, variables declared as type String are <strong
 class="selflink">UnicodeString</strong>.<strong class="selflink"></strong>",
that String=UnicodeString<br>
ÊSee: <a class="moz-txt-link-freetext" href="http://docwiki.embarcadero.com/VCL/en/System.UnicodeString">http://docwiki.embarcadero.com/VCL/en/System.UnicodeString</a> <br>
Êand also
<a class="moz-txt-link-freetext" href="http://docwiki.embarcadero.com/RADStudio/en/String_Types#UnicodeString">http://docwiki.embarcadero.com/RADStudio/en/String_Types#UnicodeString</a><br>
<br>
Note alse, that AnsiString holds additional informations about
character encoding:<br>
Ê"The <a href="http://docwiki.embarcadero.com/VCL/en/System.AnsiString"
 class="extiw" title="vcl en:System.AnsiString">AnsiString</a>
structure contains a 32-bit length indicator, a 32-bit reference count,
a 16-bit data length indicating the number of bytes per character, and
a 16-bit code page."<br>
<br>
-Laco.<br>
<br>
<blockquote cite="mid:4D2ADCE5.1070907@lumino.de" type="cite"><br>
If a string is generated by the VCL from a Window API function, the
coding will be UTF-16, though, but if you create a string with some
other coding it will be automatically re-coded to UTF16 before sending
it into a Windows API function.
  <br>
  <br>
-Michael
  <br>
_______________________________________________
  <br>
fpc-devel maillistÊ -Ê <a class="moz-txt-link-abbreviated" href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>
  <br>
<a class="moz-txt-link-freetext" href="http://lists.freepascal.org/mailman/listinfo/fpc-devel">http://lists.freepascal.org/mailman/listinfo/fpc-devel</a>
  <br>
  <br>
</blockquote>
<br>
</body>
</html>