On 10/6/10 11:30 AM, Jacek Kałucki wrote: > Użytkownik Paul McNett napisał: >> 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"?> >> > > As I told to Ed in previous post, Python encoding names > doesn't conform IANA encoding names. > Thus, I also suggest to use hard coded "utf-8" encoding.
Do you mean to say that every time we write out an xml, to use "utf-8"? > In my "settings_override.py" I have entry: > > if defaultEncoding.lower() == "utf8": > defaultEncoding = "utf-8" > elif defaultEncoding.lower() == "1252": > defaultEncoding = "windows-1252" There has to be a python library for these mappings already. I'd hate to maintain every single one we come across... 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]
