I just edited a report of mine using ReportDesigner against Dabo trunk. After I
wrote
the file it changed my xml header from:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
to:
<?xml version="1.0" encoding="UTF8" standalone="yes"?>
...and now when I go to run the report I get this traceback:
Traceback (most recent call last):
File "/home/pmcnett/dabo-full/trunk/dabo/ui/uiwx/dControlMixin.py", line 27,
in
_onWxHit
self.raiseEvent(dEvents.Hit, evt, *args, **kwargs)
File "/home/pmcnett/dabo-full/trunk/dabo/ui/uiwx/dPemMixin.py", line 1001,
in
raiseEvent
super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args, **kwargs)
File "/home/pmcnett/dabo-full/trunk/dabo/lib/eventMixin.py", line 92, in
raiseEvent
bindingFunction(event)
File "/home/pmcnett/py/datanav_additions/FrmReportBase.py", line 43, in
onHit_cmdPreview
f = self.write()
File "/home/pmcnett/py/datanav_additions/FrmReportBase.py", line 132, in
write
return typ()
File "/home/pmcnett/py/datanav_additions/FrmReportBase.py", line 138, in
write_rfxml
rw.ReportFormFile = self.ReportForm
File "/home/pmcnett/dabo-full/trunk/dabo/lib/reportWriter.py", line 2709, in
_setReportFormFile
self._reportForm = self._getFormFromXML(self._reportFormXML)
File "/home/pmcnett/dabo-full/trunk/dabo/lib/reportWriter.py", line 2518, in
_getFormFromXML
xmldict = xmltodict(xml)
File "/home/pmcnett/dabo-full/trunk/dabo/lib/xmltodict.py", line 202, in
xmltodict
raise dabo.dException.XmlException(errmsg)
dabo.dException.XmlException: An invalid XML string was encountered: unknown
encoding: line 1, column 30
Opinions on the best course of action to rectify this?
1) go back to hard-coding 'utf-8' encoding
2) somehow convert strings like 'UTF8' to 'utf-8'?
3) ?
Paul
_______________________________________________
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]