[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

Comments

Popular posts from this blog

[Level 3] Install Memcached Storage Engine for MySQL on CentOS 5.4

[Level 1] How to install Jython on Ubuntu.

[Level 2] Solaris 10 Technical Conference ( 2009/10/25,11/13,12/4 ) -- Basic SMF hands-on lab