我è¼å¥
从 MySql 获取的 Web 服务 (php) 返回的文本出现乱码
现在我正在尝试在android中将其解码为utf-8,但它不起作用
我努力了:
String s = "è¼å¥";// text returned by web service taking it as static for testing
1.不工作:
String str = new String(s.getBytes(), "utf-8");
2.不工作:
String normalized = Normalizer.normalize(str, Normalizer.Form.NFD);
// also tried NFC, NFKC, NFKD
// also tested by isNormalized its returning true
3.不工作:
String str =URLDecoder.decode(s, "utf-8");
以上都给出相同的输出:è¼å¥
那么,请谁能帮我理解我做错了什么?或者请给我任何替代方案?
任何帮助都感激不尽。谢谢