When the input file contains accents, python will complain.
To test this create a ods file with text which contains a accented character such as café.
To solve this I added 2 lines, one wich specifies the coding (see the PEP 0263 - http://legacy.python.org/dev/peps/pep-0263/)
and an extra line with non-ascii characters which forces my editor (kate) to save this as utf-8 (and keep it that way)
#!/usr/bin/python3.4
# -*- coding: utf-8 -*-
# şişman
When the input file contains accents, python will complain.
To test this create a ods file with text which contains a accented character such as café.
To solve this I added 2 lines, one wich specifies the coding (see the PEP 0263 - http://legacy.python.org/dev/peps/pep-0263/)
and an extra line with non-ascii characters which forces my editor (kate) to save this as utf-8 (and keep it that way)
#!/usr/bin/python3.4# -*- coding: utf-8 -*-# şişman