God-Emperor
Deity
Uh-oh.
I just ran into a problem that must exist in the original FF, although it would only have an effect for languages other than English.
The error:
I just ran into a problem that must exist in the original FF, although it would only have an effect for languages other than English.
The error:
Code:
Traceback (most recent call last):
File "CvWBInterface", line 18, in writeDesc
File "CvWBDesc", line 1929, in write
File "CvWBDesc", line 1521, in write
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 97: ordinal not in range(128)
ERR: Python function writeDesc failed, module CvWBInterface
[CODE]
Note that the character it is talking about is an o with an umlaut over it. This is used in one of the constellation names I added to the list. It also appears in other places for other languages (like the German for Leo), as well as other accented characters which would also cause this problem.
It looks like the output needs to be messed with to either change the encoding of the output file from ASCII to one that allows characters past 128 (to 256), or to encode the text string for the name before it is passed to the write. Then the read needs to be able to handle whatever is done. Perhaps str.encode() and str.decode()?