Solved

Write chinese(BIG5) characters to text file in Java

Posted on 2002-04-24
2
456 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now