BATCH-1684: Forcing the use of ISO-8859-1 encoding for persistence

This commit is contained in:
Michael Minella
2012-10-09 10:12:27 -05:00
parent bfdce48ac2
commit f00a0076d6
2 changed files with 7 additions and 4 deletions

View File

@@ -86,9 +86,9 @@ public class DefaultExecutionContextSerializerTests {
ByteArrayOutputStream out = new ByteArrayOutputStream();
serializer.serialize(m1, out);
String s = new String(out.toByteArray());
String s = new String(out.toByteArray(), "ISO-8859-1");
InputStream in = new ByteArrayInputStream(s.getBytes());
InputStream in = new ByteArrayInputStream(s.getBytes("ISO-8859-1"));
Map<String, Object> m2 = (Map<String, Object>) serializer.deserialize(in);
return m2;
}