From 9fcdec5719c54ab352dd956908727ddfcbfca148 Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Thu, 24 Jul 2014 17:14:00 +0000 Subject: [PATCH] To avoid problems on strange platforms, tell xmlbeans to use UTF-8 for strings by default, for bug #56683 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1613193 13f79535-47bb-0310-9956-ffa450edef68 --- src/ooxml/java/org/apache/poi/POIXMLDocumentPart.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ooxml/java/org/apache/poi/POIXMLDocumentPart.java b/src/ooxml/java/org/apache/poi/POIXMLDocumentPart.java index 7f4ee8ce3..24b4af238 100644 --- a/src/ooxml/java/org/apache/poi/POIXMLDocumentPart.java +++ b/src/ooxml/java/org/apache/poi/POIXMLDocumentPart.java @@ -60,6 +60,7 @@ public class POIXMLDocumentPart { DEFAULT_XML_OPTIONS.setSaveOuter(); DEFAULT_XML_OPTIONS.setUseDefaultNamespace(); DEFAULT_XML_OPTIONS.setSaveAggressiveNamespaces(); + DEFAULT_XML_OPTIONS.setCharacterEncoding("UTF-8"); }