add encoding

This commit is contained in:
fjy 2014-11-11 17:31:08 -08:00
parent 2f498c3422
commit 788a4a846b

View File

@ -266,6 +266,6 @@ public class SerializerUtils
public int getSerializedStringByteSize(String str)
{
return Ints.BYTES + str.getBytes().length;
return Ints.BYTES + str.getBytes(UTF8).length;
}
}