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

Rafael Oliveira rafaelbco at gmail.com
Tue Jul 2 18:23:30 UTC 2013


There's a slightly less ugly way to achieve the same results:

https://pypi.python.org/pypi/defaultencodinghack/0.2

Rafael Oliveira


On Tue, Jul 2, 2013 at 3:02 PM, Érico Andrei <ericof at plone.org> wrote:
> 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
> "utf-8".
>
> 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)
>
> best,
> ea
>
> 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
>
> _______________________________________________
> 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