Quantainne Posted January 17, 2008 Share Posted January 17, 2008 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 ... Link to comment https://forums.phpfreaks.com/topic/86434-can-a-character-code-be-distinguished-for-non-english-in-the-1-65536-range/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.