<br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">It is the same as the new Delphi unicode support, I think. All GUI<br>
components support unicode out of the box, it uses UTF8 encoded<br>
strings.<br>
AFAIK Delphi uses UTF16, so in that way it is different.<br></blockquote></div><br>I must ask a newbie question again. I never needed to pay attention to this because char encodings in GUIs have worked well for my purposes.<br>
<br>The GUI text properties have type "string" which is ansistring with the normal H+ setting.<br>TCaption is defined as "string", too.<br>Examples: TEdit.Text, TMemo.Lines[0]<br>What happens when I do:<br>
var s: string;<br> ...<br> s := TMemo.Lines[0];<br><br>Is it converted somehow?<br>The native widget's encoding is either UTF-8 or UTF-16.<br>Is the string actually a Utf8String or Utf16String then?<br>When do I need to pay attention to it?<br>
<br>Juha<br><br>