Friday, April 22, 2011

[Level 1] Support utf-8 in python.

If you got an error message like "SyntaxError: Non-ASCII character '\xe4' in file"
That means you have non-ascii character in your script.
And if you want to support utf-8, you could add the comment in your script.
e.g.
#!/bin/env python
# -*- coding: utf8 -*-
Wish this helps.
regards,
Stanley Huang