java apache common unicode处理

阅读更多
if (UnicodeConvertType.中文转unicode.equals(unicodeConvertModel.getType())) {
UnicodeEscaper unicodeEscaper = new UnicodeEscaper();
unicodeConvertModel.setResult(unicodeEscaper
.translate(unicodeConvertModel.getContent()));
} else if (UnicodeConvertType.unicode转中文.equals(unicodeConvertModel
.getType())) {
UnicodeUnescaper unicodeUnescaper = new UnicodeUnescaper();
unicodeConvertModel.setResult(unicodeUnescaper
.translate(unicodeConvertModel.getContent()));
}

你可能感兴趣的:(java,apache)