Why is ñ changing to ñ?

java, unicode

Solution

Your `string` has a wrong encoding. It's `UTF-8` but you need other, uhm Latin-1? You need decode.

Check this

Hope it help you.

Problem

I don't understand whenever I save any string that contains ñ it changes to ñ. Even in the database the ñ is changed to ñ. Examples: - ñ becomes ñ. - Niño becomes Niño. I don't have any clue what causes this problem or where the problem is coming from. Please help. Thanks in advance.

Original source

Related problems