Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I activate encoding iso8859-1 for OpenOffice.orgs python installation ?

0
Posted

How can I activate encoding iso8859-1 for OpenOffice.orgs python installation ?

0

Put a file called sitecustomize.py somewhere in your PYTHONPATH containing: import sys sys.setdefaultencoding(‘iso8859-1’) (or any other encoding you wish). However, note that this is generally not such a good idea. It would be much cleaner to do the necessary conversions explicitly in the code, for example using Unicode(x, ‘iso8859-1’).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123