Fix i18n during import.

This commit is contained in:
Paulo Gustavo Veiga
2012-10-09 08:49:51 -03:00
committed by Paulo Gustavo Veiga
parent a492521a10
commit dafe8eeb03
14 changed files with 1055 additions and 824 deletions

View File

@@ -84,8 +84,10 @@ public class TransformView extends AbstractView {
// Write the conversion content ...
final ServletOutputStream outputStream = response.getOutputStream();
if (exportFormat == ExportFormat.FREEMIND) {
response.setCharacterEncoding("iso-8859-1");
factory.export(properties, content, outputStream, null);
} else if (exportFormat == ExportFormat.WISEMAPPING) {
response.setCharacterEncoding("UTF-8");
final Object mindmap = viewMap.get("mindmap");
final StreamResult result = new StreamResult(outputStream);
jaxbMarshaller.marshal(mindmap, result);