Hi Abram, <br><br>When you talked about the difficulties that Perl has calculating string<br>lengths, I didn't quite understand your explanation because I didn'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("台葉"); # 2, because there are 2 Chinese characters<br># However, <br>
no encoding;<br>print length("台葉"); # 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 "台葉" to '台' & '葉'?<br>
<br>Thanks<br><br>Antonio<br><br>