UnicodeEncodeError workaround

I’ve been trying to get FI running on another Windows box, so I can continue development when I don’t have access to “my” computer. Having got past the first few problems (the cerealizer thing mentioned earlier!), I ran into a rather more general problem to do with an “ascii” codec and a UnicodeEncodeError involving “ordinal not in range(128)”.

A solution, or at least a workaround, to this, is to set Python’s default encoding to UTF-8. To do this, go into python24/Lib/site.py and change line 352 from

    encoding = “ascii” # Default value set by _PyUnicode_Init()

to

    encoding = “utf-8” # Default value set by _PyUnicode_Init()

 – this should allow Flyin’ Irons to load up properly.

Leave a comment