I can't tell whether it is a proper solution or not,
mine was to change browser/checkout.py
from
try:
# try to convert to unicode first, because str() of the
unicode string may fail
v = unicode(v)
except UnicodeDecodeError:
v = str(v)
to
if type(v) is not unicode:
v = unicode(v, encoding='utf8')
On Sat, Apr 25, 2009 at 5:50 AM, rafael <[email protected]> wrote:
>
> Hi,
>
> I still get an unicode decode error in shippable items (buyables are ok)
> with portuguese special chars (ê é ç) in the title.
> I worked around it changing in
>
> Products.PloneGetPaid-0.7.4-py2.4.egg/Products/PloneGetPaid/notifications.py
>
> in a line from
>
> cart_item.name
>
> to
>
> cart_item.name.decode('utf-8'),
>
>
> Is this a proper solution? I don't think so, but I couldn't find another
> place for this error debugging it...
>
>
> I am still getting that anoying zodb corruption. My workaround for now
> is to disable in cron my daily zope restart to free RAM...
>
> thanks
>
> Rafael
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"getpaid-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/getpaid-dev?hl=en
-~----------~----~----~----~------~----~------~--~---