On Dec 19, 2008, at 3:22 PM, Bob Sysero llc Dev wrote:

>  I ran cd $HOME/src/dabo; svn up to go from dabo 0.9 4871 to:
>
> Platform: GTK
> Python Version: 2.5.2 on linux2
> Dabo Version: Version 0.9.0; Revision 4880
> UI Version: 2.8.9.1 on wxGTK (gtk2)
>
> I had no problems in the Class Designer when I select run but when I  
> try
> to run my program I am getting this error dialog with no traceback
> information.  The dialog has:
>
> Compilation Error: The XML in
> '/home/bobsysero/0SyseroProjects/00TestCalc/ui/tmpdF8giS.cdxml' is not
> well-formed and cannot be parsed: unknown encoding: line 1, column 30
> Code: <unspecified>


        OK, I looked into this, and apparently Linux is barfing on any  
spelling of the XML encoding other than "utf-8". In the cdxml files,  
the XML encoding is set to "UTF8".

        So where is that coming from? I traced it to the call:  
default_encoding = locale.getdefaultlocale()[1]. On my Kubuntu system,  
this is what I get:

 >>> import locale
 >>> locale.getdefaultlocale()
('en_US', 'UTF8')

        So apparently the xml module doesn't like what the locale module  
returns. I'll look into normalizing the various spellings for 'utf-8'  
so that this is fixed. But for now, in order to open your saved  
classes in the Class Designer, you'll have to edit them manually,  
changing the first line from:

<?xml version="1.0" encoding="UTF8" standalone="no"?>

to:

<?xml version="1.0" encoding="utf-8" standalone="no"?>


-- Ed Leafe





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

Reply via email to