Solved

Write chinese(BIG5) characters to text file in Java

Posted on 2002-04-24
2
460 Views
Last Modified: 2008-03-10
In my java program, I have a String containing Chinese (BIG5)characters, how can I write them into a text file?
0
Comment
Question by:Richmond
  • 2
2 Comments
 
LVL 9

Expert Comment

by:Venci75
ID: 6965055
String data = "...";
FileOutputStream fos = new FileOutputStream("c:/file.txt");
fos.write(data.getBytes("BIG5"));
fos.close();
0
 
LVL 9

Accepted Solution

by:
Venci75 earned 200 total points
ID: 6968070
Did you try my suggestion?
0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Cipher Configuration on Apache HTTPD 4 62
couple of eclipse 5 36
servlet filter example 37 61
Java exception bubble up 2 18
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question