Skip to content

Commit

Permalink
Old confusion: document.getInputEncoding() is not
Browse files Browse the repository at this point in the history
document.getXmlEncoding !
  • Loading branch information
fbacchella committed Oct 17, 2011
1 parent 6c4e848 commit b5788a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jrds/Util.java
Expand Up @@ -444,7 +444,7 @@ public static void serialize(Document d, OutputStream out, URL transformerLocati
else
transformer = tFactory.newTransformer();

String documentEncoding = d.getInputEncoding();
String documentEncoding = d.getXmlEncoding();
if(documentEncoding == null)
documentEncoding = "UTF-8";
transformer.setOutputProperty(OutputKeys.ENCODING, documentEncoding);
Expand Down

0 comments on commit b5788a1

Please sign in to comment.