Android examples for java.lang:String Unicode
change string Charset encoding
import java.io.UnsupportedEncodingException; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main{ public static String changeCharset(String str, String from, String to) throws UnsupportedEncodingException { String newStr = null;//from w w w . j a va2s . co m newStr = new String(str.getBytes(from), to); return newStr; } }