[Product-Developers] UnicodeDecodeError in plone.app.redirector

Érico Andrei ericof at plone.org
Tue Jul 2 18:02:35 UTC 2013

To solve this problem there is a **very** ugly (and effective hack).

Find the site.py of your virtualenv, look for "ascii" and change it to

Remove the keys you need and change site.py back to ascii (ok, I admit
most of my environments have this as a permanent hack)


On 02/07/13 14:28 , Suresh V. wrote:
> I have some utf-8 encoded paths in the storage plone.app.redirector
> and am unable to remove them.
> If I try:
>     for key in storage:
>         storage.remove(key)
> I get:
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
> 72: ordinal not in range(128)
> Stepping thru the code is of no help as it seems to die in the C
> interface.
> Any advice?
> Suresh
> _______________________________________________
> Product-Developers mailing list
> Product-Developers at lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers

More information about the Product-Developers mailing list