Użytkownik Ed Leafe napisał: > I've just posted an update that adds 'dabo.getEncoding()' as the single > source of truth regarding encoding settings, and updates to all the files > that reference the encoding settings to use it. > > One thing I didn't touch, though, is some places where you have > hard-coded utf8 encoding in xml headers. Here's the grep output: > > lib/datanav/Form.py:852: rfxml = """<?xml version="1.0" > encoding="utf-8" standalone="yes"?> > lib/reporting_tests/invoice_demo/invoice.rfxml:1:<?xml version="1.0" > encoding="utf-8" standalone="yes"?> > lib/reportWriter.py:2375: header = """<?xml version="1.0" > encoding="utf-8" standalone="yes"?> > > You might want to update those to use dabo.getEncoding() instead. >
This is right approach, since UTF-8 is default encoding of XML. And AFAIK, Expat in Python 2.5 has limited encoding support. -- Regards Jacek Kałucki _______________________________________________ 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]
