Hi Everyone,
I have a problem while converting the Japanese string.
I am getting output as a garbled or junk text,below is the code I am trying to do that. Please help me out on this....
And can anyone tell me which is the best encoding for japanese Katanaka and Kanji characters?
class example1
{
public static void main(String[] args) throws Exception
{
String str = "á*ãÅ á á@"; //This is the input I am getting and I have hardcoded.
String outputString = new String(str.getBytes("Cp037"), "Cp930"); // I am trying here Cp930 encoding for Katanaka and kanji char, is anyother encoding I can use it here.?
System.out.println("Output:"+outputString);
}
Thanks in advance...