@tsing1226
2016-10-24T19:48:45.000000Z
字数 206
阅读 670
java
public byte[] getBytesWithUtf8(String value) {
return value == null ? "".getBytes() : value.getBytes(Charsets.UTF_8);
}
public String getStringWithUtf8(byte[] value) {
return new String(value, Charsets.UTF_8);
}