module_parties.py python problem

Users who are viewing this thread

I apparently have this problem...


Traceback (most recent call last):
  File "process_global_variables.py", line 11, in <module>
    from process_operations import *
  File "C:\Users\Jason\Desktop\ModuleSystem\process_operations.py", line 18, in
<module>
    from module_parties import *
  File "C:\Users\Jason\Desktop\ModuleSystem\module_parties.py", line 75
SyntaxError: Non-ASCII character '\xed' in file C:\Users\Jason\Desktop\ModuleSys
tem\module_parties.py on line 75, but no encoding declared; see http://www.pytho
n.org/peps/pep-0263.html for details

with this line of code...(in module_parties.py

  ("town_2","Orthíad",    icon_town|pf_town, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(-48.9, 92.6),[], 120),

but I can't see anything wrong with that line.
Can anyone help me?
 
The i with the dohickey on top you've used isn't part of the ASCII character set.  You can change the name to only have ASCII characters or change the code page to something more appropriate.  At the top of module_scripts.py you'll find an example of how to do this.  I believe it's setting to 1254 (Turkish which makes sense).  You might follow the link in the error display; it's got more info for you.  MSDN has more info on code pages here:  http://msdn.microsoft.com/en-us/library/cc195051.aspx
 
Back
Top Bottom