I am currently working on a program that basically translates between English and Russian. However, when entering a Russian word, some of the characters are not encoded properly.
For example, 'привет', works fine but for 'яблоко', I get: '�?блоко' after encoding.
The code I have for the encoding is:
String s = new String(searchText.getBytes(), "UTF-8");
System.out.println(s);
Any help would be appreciated.
Thanks.