collective / collective.lazysizes

Integration of lazysizes, a lightweight lazy loader, into Plone.
https://pypi.org/project/collective.lazysizes
6 stars 2 forks source link

UnicodeEncodeError while lazy loading content #18

Closed hvelarde closed 8 years ago

hvelarde commented 8 years ago

the following error is being shown is a customer's log:

2016-08-05T18:31:10 ERROR plone.transformchain Unexpected error whilst trying to apply transform chain
Traceback (most recent call last):
  File "/home/conversaafiada/conversaafiada.portal/eggs/plone.transformchain-1.0.4-py2.7.egg/plone/transformchain/transformer.py", line 48, in __call__
    newResult = handler.transformIterable(result, encoding)
  File "/home/conversaafiada/conversaafiada.portal/eggs/collective.lazysizes-1.5.0b1-py2.7.egg/collective/lazysizes/transform.py", line 164, in transformIterable
    self._lazyload(el)
  File "/home/conversaafiada/conversaafiada.portal/eggs/collective.lazysizes-1.5.0b1-py2.7.egg/collective/lazysizes/transform.py", line 127, in _lazyload
    logger.debug(msg.format(element.tag, src))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe3' in position 63: ordinal not in range(128)