UnicodeEncodeError: 'ascii' codec can't encode characters
Up to table of contentsThis FAQ applies to: Any version.
Problems with non-ASCII characters.
Please create/edit sitecustomize.py and add the following line of code:
sys.setdefaultencoding('utf_8')
sitecustomize.py is located in:
Linux |
<%InstallDir%>/lib/python2.5, where <%InstallDir%> is MGLTools' installation directory |
Mac OS X |
/Library/MGLTools/lib/python2.5 |
Windows |
C:\Python25\Lib |

Linux
Mac OS X
Windows