Java string encoding problem
807589Oct 10 2008 — edited Oct 11 2008Hi 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