怎么样将GB2312编码的字符创转换为ISO-8859-1编码的字符串

**

怎么样将GB2312编码的字符创转换为ISO-8859-1编码的字符串

**

public static String change(String a){
		try {
			return new String(a.getBytes("GB2312"),"ISO-8859-1");
		} catch (UnsupportedEncodingException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}
										***帅气的远远啊***
发布了27 篇原创文章 · 获赞 14 · 访问量 2221

猜你喜欢

转载自blog.csdn.net/qq_41585840/article/details/104068714