Link to home
Start Free TrialLog in
Avatar of Richmond
Richmond

asked on

Write chinese(BIG5) characters to text file in Java

In my java program, I have a String containing Chinese (BIG5)characters, how can I write them into a text file?
Avatar of Venci75
Venci75

String data = "...";
FileOutputStream fos = new FileOutputStream("c:/file.txt");
fos.write(data.getBytes("BIG5"));
fos.close();
ASKER CERTIFIED SOLUTION
Avatar of Venci75
Venci75

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial