Jump to content

Can a "character code" be distinguished for non-English, in the 1-65,536 range?


Recommended Posts

Hello coders,

 

When I pull Japanese phrases out of a Mysql dB (with utf set as Mysql's mode, and php's internal encoding is also utf, with php_mbstring.dll set as an extension in php.ini), it's helpful to separate the results into two -- traditional characters with more strokes in one group, separated from the simpler ones and English in the other, according to their code number. I haven't been able to find if and where php does this, though Flash's ActionScript does this for a string by calling the charCodeAt( ) method on the string.

 

If I had a statement or if-test that would segregate ones below 13,000 from ones above 13,000, that would be tremendous. A typical example is the character 癖, which ActionScript and browsers recognize as the character with code 30,294. In case there was any gibberish above, it would be what a browser renders from the string 癖.

 

Any advice would save this project ...

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.