Problems with encoding in shotfactory

2 vistas
Ir al primer mensaje no leído

Chuso

no leída,
5 nov 2008, 12:26:42 p.m.5/11/08
para 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

no leída,
5 nov 2008, 3:00:22 p.m.5/11/08
para 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

Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos