java unicode转utf-8

public static String unicode2Utf8(String sourceStr) throws UnsupportedEncodingException
	{
		byte[] converttoBytes = sourceStr.getBytes("UTF-8");
	    String destStr = new String(converttoBytes, "UTF-8");
	    return destStr;
	}
相关文章
相关标签/搜索