<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
ik wrote / napísal(a):
<blockquote
cite="mid:CAOccsKBTZLGamkhhUqMg8oRg2d187BWHR25YHrwqbpG+fLhDww@mail.gmail.com"
type="cite">
<pre wrap="">On Mon, Nov 5, 2012 at 1:18 PM, Tomas Hajny <a class="moz-txt-link-rfc2396E" href="mailto:XHajT03@hajny.biz"><XHajT03@hajny.biz></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Mon, November 5, 2012 11:49, ik wrote:
Hello Ido,
</pre>
<blockquote type="cite">
<pre wrap="">As I understand, AnsiString and AnsiChar contain the environment type
of string (it can be ISO8859x, utf-8 etc...).
If that so, how can I know the size (in bytes) of AnsiChar ?
</pre>
</blockquote>
<pre wrap="">As far as I understand it, AnsiChar is always 1 byte, i.e. it cannot hold
(whole) multi-byte encoded characters like UTF-8 (at least at the moment;
I'm not sure if this is supposed to stay like that also in the future or
not).
</pre>
</blockquote>
<pre wrap=""><!---->
Thank you
</pre>
</blockquote>
You can also try (in 2.7) : function StringElementSize(const S :
RawByteString): Word;<br>
-Laco.<br>
<br>
</body>
</html>