Fix i18n encodding issue.

This commit is contained in:
Paulo Gustavo Veiga
2012-11-19 22:47:20 -03:00
parent b717a5f910
commit c3dcd8f3a9
3 changed files with 21 additions and 44 deletions

View File

@@ -82,14 +82,14 @@ public class Mindmap {
throws IOException {
byte[] result = this.xml;
if (result != null) {
result = ZipUtils.stringToZip(new String(result, UTF_8));
result = ZipUtils.bytesToZip(result);
}
return result;
}
public void setZippedXml(byte[] xml)
throws IOException {
this.xml = ZipUtils.zipToString(xml).getBytes(UTF_8);
this.xml = ZipUtils.zipToBytes(xml);
}
public Set<Collaboration> getCollaborations() {