/[Apache-SVN]
ViewVC logotype

Revision 1747445


Jump to revision: Previous Next
Author: rwhitcomb
Date: Wed Jun 8 19:59:40 2016 UTC (7 years, 9 months ago)
Changed paths: 2
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).


Changed paths

Path Details
Directorypivot/trunk/core/src/org/apache/pivot/serialization/StringSerializer.java modified , text changed
Directorypivot/trunk/core/test/org/apache/pivot/serialization/test/StringSerializerTest.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26