<div class="gmail_quote">Hi Abram, <br><br>When you talked about the difficulties that Perl has calculating string<br>lengths, I didn&#39;t quite understand your explanation because I didn&#39;t catch<br>the term that you used. Could you explain it in writing please? <br>

<br>AFAIK, how Perl interprets string length depends on encoding, E.g.,<br><br><div style="margin-left: 40px;">use encoding utf8;<br>print length(&quot;台葉&quot;); # 2, because there are 2 Chinese characters<br># However, <br>

no encoding;<br>print length(&quot;台葉&quot;); # 6, the 2 Chinese characters take up 6 bytes.<br></div><br>I.e., Perl has the capability to return whatever string length you want. Do I miss anything? <br><br>BTW, <br><br>
Anyone knows how to split an Unicode string into individual characters? E.g., from &quot;台葉&quot; to &#39;台&#39; &amp; &#39;葉&#39;?<br>
<br>Thanks<br><font color="#888888"><br>Antonio<br><br>
</font></div><br>