Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Converting \u00e0 to appropriate character.

807569Jul 18 2006 — edited Aug 1 2006
Dear Java folks,

I'm trying to import some Java source code produced on one system into another.

I have a zip file which contains some .java source files in which non-ascii characters have been converted to their equivalent Unicode string, for example:

String s1 = "\u00e0" ;

The original code looked like this:

String s1 = "�" ; <- that's an 'a' with an accent over it.

I'm reading the source code from a zip file using an InputStreamReader.

Is there any way to convert the "\u00e0" and other Unicode characters back into the correct characters as I read the zip entry?

fyi I'm running on WIndows XP and the original code is part of a Lotus Notes database. In Notes the characters look fine but when the code is 'exported' they get converted to \u00e0 by NOtes and there's not much I can do about that. Both the export and the import are running on the same computer.

TIA, Keith
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 29 2006
Added on Jul 18 2006
21 comments
2,126 views