when i am trying to import some text through java Api to mega system.
then I get error where characters are of different language. eg Ö in my case.
How to encode this through java api so that I can import the text without getting any error.
Try using the following:
byte covertedText = toMegaString.getBytes(ISO_8859_1);
String valueToMega = new String(covertedText, UTF_8);