Użytkownik Paul McNett napisał:
> dabo Commit
> Revision 6093
> Date: 2010-10-07 21:12:59 -0700 (Thu, 07 Oct 2010)
> Author: Paul
> Trac: http://trac.dabodev.com/changeset/6093
>
> Changed:
> U   trunk/dabo/__init__.py
> U   trunk/dabo/lib/connParser.py
> U   trunk/ide/wizards/AppWizard/AppWizard.py
> U   trunk/ide/wizards/AppWizard/spec-main.exe.manifest
> UU  trunk/ide/wizards/AppWizard/spec-sampleReport.rfxml
> U   trunk/ide/wizards/AppWizard/spec-setup.py.txt
>
> Log:
> Fixed the XML generated from the Appwizard to use utf-8, as it was failing 
> with '1252' on Windows for the cnxml, samplereport.rfxml, and the manifest 
> file.
>
> Diff:
> Modified: trunk/dabo/__init__.py
> ===================================================================
> --- trunk/dabo/__init__.py    2010-10-08 01:56:08 UTC (rev 6092)
> +++ trunk/dabo/__init__.py    2010-10-08 04:12:59 UTC (rev 6093)
> @@ -144,7 +144,15 @@
>               ret = defaultEncoding
>       return ret
>
> +def getXMLEncoding():
> +     ret = getEncoding()
> +     if ret.lower().strip().replace("-", "") == "utf8":
> +             return "utf-8"
> +     if "1252" in ret:
> +             return "windows-1252"
> +     return ret
>
>    

Hi.

Maybe it worth while to move above code to getEncoding() function itself?

-- 
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]

Reply via email to