Thanks a lot Mike & Liam for the replies. <br><br><div class="gmail_quote">2009/5/1 Mike Stok <span dir="ltr"><<a href="mailto:mike@stok.ca">mike@stok.ca</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style=""><br><div><div><div class="h5"><blockquote type="cite"><div class="gmail_quote"> Anyone knows how to split an Unicode string into individual characters? E.g., from "台葉" to '台' & '葉'?<br>
</div></blockquote><div></div></div></div></div></div></blockquote><div>So both unpack 'U*' and split // work. I should have thought that split // would work on Unicode too.<font face="Courier"><br></font><br> </div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style=""><div><div><div class="h5"><div></div></div></div>There has to be a better way than this:</div>
<div><br></div><div><div><font face="Courier"> DB<7> @chars = map { chr } unpack('U*', "台葉")</font></div><div><font face="Courier"></font></div></div></div></blockquote><div><font face="Courier"><br>
</font>this teaches me that to pack back 'unpack' is not 'pack' but 'chr'. :-)<br><br>BTW, "台葉" means camel in Chinese.<br><br>cheers<br><br><br></div></div>