Created
April 28, 2016 17:05
-
-
Save mr-wind/85c3488aca0a21dab871d52d4f497a82 to your computer and use it in GitHub Desktop.
转码
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String title = null; | |
try { | |
title = new String(i.getTitle().getBytes("ISO-8859-1"), "UTF-8");//转码 | |
} catch (UnsupportedEncodingException e) { | |
e.printStackTrace(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
用于处理服务器传来的数据编码,这样就不会显示不出来中文了