It's wired! I did the same thing and got the result of 3 perl -le 'print length("我")' 3 Pls see the attachment
Thank you. -----Original Message----- From: Jeff Pang [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 16, 2007 2:40 PM To: Thomas Yan Cc: Neil; beginners@perl.org Subject: Re: Chinese word problem Thomas Yan 写道: > '我' takes 2 bytes '\0' takes 1 byte , so "我“ takes 3 > Not right.This was not like C's char str[] form. I think the origin ppl's words are in some encoding form like base64. For me I got exactly 2 bytes.like, perl -le 'print length("我")' 2 -- Jeff Pang http://home.arcor.de/jeffpang/
<<attachment: chineseWord2.JPG>>
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/