<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<blockquote cite="mid:200809290956.52066.fpc@bcsoft.de" type="cite">
<blockquote type="cite">
<pre wrap="">That obviously is the reason why Turbo - Delphi uses UCS-2 (16 bit)
instead of OF UTF-8 or UTF-16 for WideStrings (and WideChar is a 16
bit (UCS-2) value).
</pre>
</blockquote>
<pre wrap=""><!---->
You didn't read <a class="moz-txt-link-freetext" href="http://www.jacobthurman.com/?p=30">http://www.jacobthurman.com/?p=30</a> , did you?
</pre>
</blockquote>
They are talking about Delphi 2009, of which I don't have any
information at all (and don't intend to bother with until there is a
free "Turbo" version of if). <br>
<br>
I just talked about the current free "Turbo Delphi" version which
obviously uses UCS-2 (plain 16 bits) and not any UTF (variable size)
coding. <br>
<br>
As discussed in the messages here, any UTF coding would result in a
huge overhead e.g. when doing something like s[4] := c; (s: WideString;
c: WideChar) as the (potentially huge) tail of the string would need to
be moved around according to the different sizes of the codes of the
previous s[4] and c. <br>
<br>
-Michael<br>
</body>
</html>