java - Converting a string from a language to another using unicode -


one approach using info know language ranges. example, unicode range 30a0–30ff represents japanese katakana characters, if string consists of characters within range, make educated guess it's japanese , work accordingly.

this requires knowing how handle unicode language pages in java

any please

java char 16 bit unicode. string , go parsing characters:

string string = getstring(); // returns string parse boolean japanesechars = true; (ii=0; ii<string.length; ii++) {     char character = string.charat(ii);     if (!(character >= 0x30a0 && character<= 0x30ff)) {          japanesechars = false;     } } 

Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -