Log Message: |
PIVOT-989: Use the correct Charset in StringSerializer.writeObject(). The "getBytes()"
call was not specifying any Charset, thus getting the platform default (which on Windows
is usually Win-1252), which is usually not the same as the UTF-8 default which is used
in this class. So, use the given Charset.
Also, in "trunk", use the StandardCharsets.UTF_8 value, instead of searching by name.
Note: this part of the change will not be propagated to "2.0.x" because it still needs
to compile under Java 6.
Update the StringSerializerTest with a specific test of this, and include a byte dump
so we can actually examine the bytes to make sure (the console output, especially on
Windows, is not helpful).
|