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!

Java string encoding problem

807589Oct 10 2008 — edited Oct 11 2008
Hi all, I ran in the following problem. I store some text in a MySQL database (table encoding is "latin-swedish"): some characters are from Italian, and you can find something like "à" or "è". Now, when I render the content to screen, everything goes well (and inside the table characters are stored properly. When I write those characters to a file (in order to provide a kind of backup functionality), I get weird characters instead of the original ones (in particular when they have an acute). Now, I tried to encode the string I get back from rs.getString() with "ISO-8859-1" encoding but still I get weird characters.
Any idea?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 8 2008
Added on Oct 10 2008
3 comments
469 views