cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Encode Lanaguage other than english

Rakeshkonjengba
Contributor

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

1 Reply

imrankhatyan
Trusted Contributor

Try using the following:

 

byte covertedText[] = toMegaString.getBytes(ISO_8859_1);

String valueToMega = new String(covertedText, UTF_8);