Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within I/O and Streams
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830
this week in the
Programmer Certification
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
I/O and Streams
Special characters while writing file in linux env
Mani Venkata Kanth
Ranch Hand
Posts: 39
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I have an application running in Linux environment. This modules reads the below
string
and writes in a new file.
XYZZZABDS.ÿ$ABDCJDDMDLGDMG
However, while writing using the below line, I am getting the out put as below.
XYZZZABDS.ÿ$ABDCJDDMDLGDMG
Due to this my application throws an exception.
Please suggest me if there is any turn around or suggestions to resolve this issue.
Rob Spoor
Sheriff
Posts: 22815
132
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Instead of using FileWriter and FileReader, use FileOutputStream + OutputStreamWriter / FileInpuStream + InputStreamReader, supplying the same explicit encoding in both processes.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions
How To Answer Questions
We don't have time for this. We've gotta save the moon! Or check this out:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
java.io.IOException: Stale NFS file handle
Launching file under Linux/Unix?
Help on Changing font.
Java encoding
Problem with Linux
More...