src/org/nutz/lang/Strings.java
public static String changeCharset(CharSequence cs, Charset newCharset) {
        if (cs != null) {
            byte[] bs = cs.toString().getBytes();
            return new String(bs, newCharset);
        }
        return null;
    }
public static String changeCharset(CharSequence cs, Charset newCharset) {
        if (cs != null) {
            byte[] bs = cs.toString().getBytes();
            return new String(bs, newCharset);
        }
        return null;
    }
public static String changeCharset ( CharSequence cs , Charset newCharset ) { if ( cs != null ) { byte [ ] bs = cs . toString ( ) . getBytes ( ) ; return new String ( bs , newCharset ) ; } return null ; }
改变字符编码集

@param cs
原字符串
@param newCharset
指定的新编码集
@return 新字符集编码的字符串
改变字符编码集