This content has been marked as final. Show 5 replies
Thanks for reply
I tried it as
char a = unicode.toCharArray();
for(int m = 0; m< a.length; m++)
String hex = new String(Integer.toHexString(a[m]));
System.out.println("HEX :" + hex);
and it prints the following results.
But when i tried on another,it does not work.
But when i tried on another,it does not work.another what ??
In case you are dealing with some message properties file then its better to convert the native file to ascii using a native2ascii converter tool. Then you need not use Integer.toHexString(..)
You can run the following command on DOS for convertion of a japanese file into unicode ..
native2ascii message_jp.properties message_ja_JP.properties
The system will then pick and read the messages from this unicode file.
Native2ascii converts things to ASCII using Unicode escapes.
Google for a free download for Native2ascii converter.
but problem still exists.
In for loop , message variables is initialized with the following hex value.
when i submit this message to smsc , it is delivered to mobile phone but can't be read.
When i directly initialized message variable with the above hex value it is delivered properly. I am not getting what is wrong with the code.
Message was edited by: