Solved

Write chinese(BIG5) characters to text file in Java

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
web services creation SOAP vs REST 5 57
How to convert String matching to regex in java 4 52
Chrome and Firefox Java 5 52
java mysql insert application 14 29
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…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
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 …

821 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