Page 1 of 1

is_unicode in php5 ?

Posted: Sat Jul 25, 2009 11:27 am
by markthien
Hi guys,

I have checked php website stating that only php6 support is_unicode function. However, my webhosting company is using php5. Is there anywhere I can install is_unicode function in php5?

Thanks,
Mark

Re: is_unicode in php5 ?

Posted: Sat Jul 25, 2009 3:55 pm
by Weirdan
You don't need this function in PHP5 since PHP5 doesn't have special type for unicode strings.

Re: is_unicode in php5 ?

Posted: Sat Jul 25, 2009 11:27 pm
by markthien
Hi,

I need this function to check if user has enter some non-unicode character like Chinese or Korean. However, my web hosting server is still under php5.

regards,
Mark

Re: is_unicode in php5 ?

Posted: Sun Jul 26, 2009 3:04 am
by arjan.top
why wouldn't Chinese/Korean characters be unicode?

Re: is_unicode in php5 ?

Posted: Sun Jul 26, 2009 3:10 am
by markthien
i need to check when user input a string of like 50 characters, i will check each character see if which character is Chinese or Korean. Chinese or Korean is non-unicode !

Re: is_unicode in php5 ?

Posted: Sun Jul 26, 2009 4:08 am
by arjan.top
so how does this page (http://www.mandarintools.com/chardict_u8.html) display Chinese characters in UTF-8 if they are not part of Unicode?

Re: is_unicode in php5 ?

Posted: Sun Jul 26, 2009 8:10 pm
by markthien
I do not need to display the chinese character. All I need is to check how many chinese character user has entered in the textarea after she submitted to backend for processing. she can enter english, chinese, japanese, korean etc in the textarea. and my backend php script jus wanna check how many chinese character she has entered and not displaying them on the page. do u get what I mean ?