?
Solved

Encodings, etc

Posted on 2004-09-17
6
Medium Priority
?
198 Views
Last Modified: 2010-03-31
I'm searching for the method used to write and read cyrillic characters from a standard text file using BufferedReader/BufferedWriter.  I've been unable to find any useful information so far and my attempts at writing and saving in different encodings has failed so far.  

Any ideas?
0
Comment
Question by:lomidien
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 12085499
If you're reading, you'll need to know what encoding has been used
0
 

Author Comment

by:lomidien
ID: 12085516
All the files I'll be reading will be created by myself....all in Unicode format.  Man alive CEHJ, you're always fast to respond!!
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 12085531
String encoding = "x;
BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream("x.txt"), encoding)); //
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 86

Accepted Solution

by:
CEHJ earned 1000 total points
ID: 12085556
OK - so you know what 'x' is ! ;-)

String encdoing = "UTF8";
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream("x.txt"), encoding));
0
 

Author Comment

by:lomidien
ID: 12085590
Perfect,

Thanks a bunch!  Right on the money!
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 12085615
8-)
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
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 will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

719 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