Recommended: Sing it, brah! 5 fabulous songs for developers
JW's Top 5
Hi,
I am new to ja encoding formats in java. I have a code where I want to save ja lang text in a text file (.vcs - calander attachment). But I get junk characters instead of ja lang texts. I tried a small code snippet which I am not able to get it work.
String st = "japanese lang text here";
File fl1;
fl1 = new File("C:\\test.txt");
FileOutputStream fos1 = new FileOutputStream(fl1);
fos1.write(st.getBytes("SJIS"));
fos1.close();Thanks for the help in advance.
Senthil