Running dLocalize.py gives this output with an exception:

+----+------------+-----------+----------------+------------+------------------------------+
| en | OK         | &File     | &Edit          | &Help      | 
Application finished.        |
+----+------------+-----------+----------------+------------+------------------------------+
Traceback (most recent call last):
   File "C:\dev\dabo\dabo\dLocalize.py", line 209, in <module>
     print line(l)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xcd' in 
position 8: ordinal not in range(128)

I noticed this after I upgraded Sphinx to 1.0.7 as it should fix some 
issues I see.

My work around / hack is just to add this to it:
# force it, otherwise the none ASCII stuff causes a problem for Sphinx
reload(sys)
sys.setdefaultencoding('utf-8')
del sys.setdefaultencoding

However I know that many frown on this, so what would be the correct fix 
to dLocalize.py?

Werner

_______________________________________________
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