cancel
Showing results for 
Search instead for 
Did you mean: 

Encode Lanaguage other than english

Highlighted
Occasional Contributor

Encode Lanaguage other than english

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

Tags (3)
1 REPLY
Contributor

Re: Encode Lanaguage other than english

Try using the following:

 

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

String valueToMega = new String(covertedText, UTF_8);