perl-unicode

Newbie unicode/chinese question

2003-03-27 03:30:04
Really newbie question.  Please help me out. 
Anyway I have this form and you can submit your info with it.  The users
can use english, chinese in big5 or gb whatever.  I want to check the
length of the string they entered to make sure its not over a certain
length, say 25 characters.  problem is when they use chinese, it always
returns the Chinese as Ê×λÈÕ±ŸÍâԮɱÈëŒ× or stuff like that, hopefully
thats unicode?  How would I go about counting how many Chinese characters
are there when they enter Chinese instead of just counting the number of
characters?  ie Ê× should be 1 character not 8.
Thanks all!

<Prev in Thread] Current Thread [Next in Thread>