Problems with encoding in shotfactory

2 views
Skip to first unread message

Chuso

unread,
Nov 5, 2008, 12:26:42 PM11/5/08
to Browsershots
Shotfactory source code includes non-ASCII characteres in __date__
variables causing it to fail with the following message:

SyntaxError: Non-ASCII character '\xc3' in file /home/browsershots/
shotfactory/shotfactory04/gui/__init__.py on line 22, but no encoding
declared; see http://www.python.org/peps/pep-0263.html for details

Please fix it, either by removing non-ASCII characteres or by
declaring encoding as explained in the link above.

Johann C. Rocholl

unread,
Nov 5, 2008, 3:00:22 PM11/5/08
to browse...@googlegroups.com
On Wed, Nov 5, 2008 at 6:26 PM, Chuso <che...@gmail.com> wrote:
> Shotfactory source code includes non-ASCII characteres in __date__
> variables causing it to fail with the following message:
>
> SyntaxError: Non-ASCII character '\xc3' in file /home/browsershots/
> shotfactory/shotfactory04/gui/__init__.py on line 22, but no encoding
> declared; see http://www.python.org/peps/pep-0263.html for details

This problem occurs if you use Subversion with a non-ASCII locale,
e.g. French or Chinese, as the date is inserted by Subversion when you
run "svn checkout", but the month may contain non-ASCII letters. You
can fix it by deleting your checkout folder, then setting LC_ALL=C or
en_US.UTF-8, then running the entire checkout again.

Hope this helps,
Johann

Reply all
Reply to author
Forward
0 new messages