Python exceptions :

vincentz

Programmer
Joined
Feb 4, 2009
Messages
3,614
Location
Denmark
What does the bolded mean?
I noticed that the encoding in the xml varies from "encoding="UTF-8" and "encoding="ISO-8859-1" to simply be nonexisting. I checked on the original files, its the same.
Spoiler :
Code:
12 SCREEN TURNED ON
SCREEN OFF
Traceback (most recent call last):
  File "CvEventInterface", line 23, in onEvent
  File "CvEventManager", line 188, in handleEvent
  File "CvEventManager", line 872, in onCityGrowth
  File "CvUtil", line 122, in pyPrint
  File "<string>", line 13, in write
[B]UnicodeEncodeError: 'ascii' codec can't encode character u'\xc9' in position 3: ordinal not in range(128)[/B]
Traceback (most recent call last):
  File "CvEventInterface", line 23, in onEvent
  File "CvEventManager", line 188, in handleEvent
  File "CvEventManager", line 824, in onCityBuilt
  File "CvUtil", line 122, in pyPrint
  File "<string>", line 13, in write
[B]UnicodeEncodeError: 'ascii' codec can't encode character u'\xf8' in position 23: ordinal not in range(128)[/B]
PY:Santiago has grown
PY:Orleans has grown
PY:Damascus has grown
PY:City Built Event: Thracian
 
The game is not able to display "special characters" (ö, ä, ü, ´` whatever else) if you directly put them in the XML files, but it will convert them when you put the HTML code in there.
And you see there the error message for such a display failure.
 
Back
Top Bottom