Write and Readback

Z

zku

Hi,

I have a String object that contains non-ascii characters.

I stored the String object into a file using "UTF-8" charset.; File #1.

Then, I read it back from the file using "UTF-8" charset as well.

The checking readBackString.equals( origString) is true.

I stored the readBackString to another file using "UTF-8" charset. File #2.

I opened the File #1 and #2, I can see there are characters different.

Questions:
How to store so that the file #2 is the same as file #1?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top