23-08-2016 09:00 AM
Hello ,
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.
Br,
Rakesh
25-08-2016 06:44 AM
Try using the following:
byte covertedText[] = toMegaString.getBytes(ISO_8859_1);
String valueToMega = new String(covertedText, UTF_8);