dabo Commit
Revision 6066
Date: 2010-10-03 13:32:38 -0700 (Sun, 03 Oct 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6066

Changed:
U   trunk/dabo/lib/reportWriter.py

Log:
Replaced the hard-coded utf-8 encoding in rfxml with the encoding specified in 
dabo.getEncoding()

Diff:
Modified: trunk/dabo/lib/reportWriter.py
===================================================================
--- trunk/dabo/lib/reportWriter.py      2010-10-03 17:07:56 UTC (rev 6065)
+++ trunk/dabo/lib/reportWriter.py      2010-10-03 20:32:38 UTC (rev 6066)
@@ -48,6 +48,7 @@
 import reportlab.lib.styles as styles
 import reportlab.platypus as platypus
 #import reportlab.lib.colors as colors
+from dabo import getEncoding
 from dabo.lib.xmltodict import xmltodict
 from dabo.lib.xmltodict import dicttoxml
 from dabo.dLocalize import _
@@ -2372,7 +2373,7 @@
 
        def _getXmlHeader(self):
                """Returns the XML header for the rfxml document."""
-               header = """<?xml version="1.0" encoding="utf-8" 
standalone="yes"?>
+               header = """<?xml version="1.0" encoding="%s" standalone="yes"?>
 
 <!--
                This is a Dabo report form xml (rfxml) document, describing a
@@ -2381,7 +2382,7 @@
 -->
 
 
-"""
+""" % getEncoding()
                return os.linesep.join(header.splitlines())
 
 



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to