is_unicode in php5 ?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
markthien
Forum Commoner
Posts: 33
Joined: Fri Feb 13, 2009 7:50 pm

is_unicode in php5 ?

Post 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
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: is_unicode in php5 ?

Post by Weirdan »

You don't need this function in PHP5 since PHP5 doesn't have special type for unicode strings.
markthien
Forum Commoner
Posts: 33
Joined: Fri Feb 13, 2009 7:50 pm

Re: is_unicode in php5 ?

Post 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
User avatar
arjan.top
Forum Contributor
Posts: 305
Joined: Sun Oct 14, 2007 4:36 am
Location: Hoče, Slovenia

Re: is_unicode in php5 ?

Post by arjan.top »

why wouldn't Chinese/Korean characters be unicode?
markthien
Forum Commoner
Posts: 33
Joined: Fri Feb 13, 2009 7:50 pm

Re: is_unicode in php5 ?

Post 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 !
User avatar
arjan.top
Forum Contributor
Posts: 305
Joined: Sun Oct 14, 2007 4:36 am
Location: Hoče, Slovenia

Re: is_unicode in php5 ?

Post 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?
markthien
Forum Commoner
Posts: 33
Joined: Fri Feb 13, 2009 7:50 pm

Re: is_unicode in php5 ?

Post 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 ?
Post Reply