I must recognize I use a lot of python scripting for various tasks. Some of them, just stopped working:

First problem

./my_script.py<br></br>  File "./my_script.py", line 53<br></br>SyntaxError: Non-ASCII character '\xc3' in file ./my_script.py on line 53, <br></br>but no encoding declared; see http://www.python.org/peps/pep-0263.html <br></br>for details

The solution

Just add the following at the beginning of the script

#!/usr/bin/env python<br></br># -*- coding: UTF-8 -*-

Second problem

Traceback (most recent call last):<br></br>  File "./my_script.py", line 8, in <module><br></br>    locale.setlocale(locale.LC_ALL, 'fr_FR.UTF-8')<br></br>  File "/usr/lib/python2.5/locale.py", line 478, in setlocale<br></br>    return _setlocale(category, locale)

The solution

apt-get install language-support-fr<br></br>dpkg-reconfigure locales