python's non-ascii error when importing library
#1
Hi guys,

I'm writing an add-on, so far successfully. When I add the following line it runs well on windows, but fails on mac:

from xml.dom.minidom import parseString

SyntaxError: ("Non-ASCII character '\\xac' in file /Users/Shared/xbmc-depends/macosx10.6_i386/lib/python2.6/xml/__init__.py on line 1, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details", ('/Users/Shared/xbmc-depends/macosx10.6_i386/lib/python2.6/xml/__init__.py', 1, 0, None))
00:08:03 T:2962513920 INFO: -->End of Python script error report<--

What am i doing wrong? any help would be appreciated.

Gal.
Reply
#2
Dunno what's wrong there, but for now I rewritten my code to use simplejson instead... Tongue
Reply

Logout Mark Read Team Forum Stats Members Help
python's non-ascii error when importing library0