apache /
pivot /
38e6929b6da5b0ee84e126f31d7b99ab4ebf1df8 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).
git-svn-id: https://svn.apache.org/repos/asf/pivot/trunk@1747445 13f79535-47bb-0310-9956-ffa450edef68
2 files changed