[Zope] Product CalendarTag on zope2.13.19

Tres Seaver tseaver at palladion.com
Wed Mar 27 16:56:44 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/27/2013 11:44 AM, Giampiero Benvenuti wrote:
> Hello!
> 
> I'm running a zope2.13.19 instance on my mac. I intstalled the product
> Calendar version 1.0.19
> 
> I adjusted the file __init__.py
> 
> Change the line:
> 
> from ImageFile import ImageFile
> 
> with:
> 
> from App.ImageFile import ImageFile
> 
> so far so good.
> 
> Still, one problem is this type of error:
> 
> SyntaxError: Non-ASCII character '\xf1' in file
> /Applications/zope21319/Products/Calendar/CalendarTag.py on line 139,
> but no encoding declared;
> 
> Is pointing to lines containing non ASCII character such as this one:
> 
> 'pl':
> ('StyczeÒ','Luty','Marzec','KwiecieÒ','Maj','Czerwiec','Lipiec','SierpieÒ','WrzesieÒ','Paºdziernik','Listopad','GrudzieÒ')
>
>  What is the best way to take care of this issue? Of course, the
> fastest is to get rid of some languages... not good.
> 
> It could be nice to release a complete working version of the
> product.
> 
> Please give me some hints.

You could add the encoding at the top of the Python module.  See PEP 263:

  http://www.python.org/dev/peps/pep-0263/



Tres.
- -- 
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlFTJMwACgkQ+gerLs4ltQ6sugCeNDKMadJOIa1IlmdoIvIImO+4
+FcAnAzX7dZrorjmoJCmSvBYV4U+a7mH
=hmSL
-----END PGP SIGNATURE-----



More information about the Zope mailing list