[問題] length (unicode string)?

看板Perl作者 (e :) y)時間19年前 (2006/05/04 21:30), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
$str = "中文"; # in utf-8 length($str) => 6 length會傳回byte length 有什麼辦法(CPAN) 可以傳回length of character $str = "abc中文" # in utf-8 length($str) => 5 ......how? -- PLUR -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 84.162.110.117
文章代碼(AID): #14Md9uqC (Perl)
討論串 (同標題文章)
以下文章回應了本文
完整討論串 (本文為第 1 之 2 篇):
19年前, 2006/05/04 21:30
文章代碼(AID): #14Md9uqC (Perl)