I’m getting a string ‘ÐалендаÑÐ’ instead of getting ‘Календари’ in Java code. How can I convert ‘ÐалендаÑÐ’ to ‘Календари’?
I used
String convert =new String(convert.getBytes("iso-8859-1"), "UTF-8")
String convert =new String(convert.getBytes(), "UTF-8")
I believe your code is okay. It appears that your problem is that you need to do a specific character conversion, and maybe your “real” input is not being encoded correctly. To test, I would do a standard step by step CharSet encoding/decoding, to see where things are breaking.
Your encodings look fine, http://docs.oracle.com/javase/1.6/docs/guide/intl/encoding.doc.html
And the following seems to run normally :