Stupid unicode errors

RogerBacon

King
Joined
Nov 16, 2003
Messages
649
I get some unicode errors when Civ tries to write city names in events such as onCityGrowth or any event where it has to print the city name to a file.
Traceback (most recent call last):
File "CvEventInterface", line 22, in onEvent
File "CvEventManagerControlFile", line 189, in handleEvent
File "CvEventManagerControlFile", line 200, in _handleDefaultEvent
File "CvEventManager", line 871, in onCityGrowth
File "CvUtil", line 122, in pyPrint
File "<string>", line 13, in write
UnicodeEncodeError: 'ascii' codec can't encode character u'\xc9' in position 3: ordinal not in range(128)

It seems to be because any city name with an apostophe in it is being read as a unicode character. These are unmodded files so I can only assume everyone else gets these errors from time to time as well.I have English WinXP system but I do have the East Asian language enabled. Could that be the problem?
 
Back
Top Bottom