How can I activate encoding iso8859-1 for OpenOffice.orgs python installation ?
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
- I can’t activate the installation due to the error "Could not initialize installation. File size expected = 1416160, size returned = 229376."?
- Will EPD for Mac provide a "standard" (i.e. behaves like a Linux installation) version of Python in which I can install any other Python module?
- How to activate Kaspersky Anti-Virus 2011 during installation?