[kupu-dev] UnicodeDecodeError with umlauts in image title

Tim Terlegård tim.terlegard at valentinewebsystems.se
Thu Jul 10 09:01:12 CEST 2008


On Jul 4, 2008, at 9:36 AM, Duncan Booth wrote:

> Tim Terlegård <tim.terlegard at valentinewebsystems.se> wrote:
>
>> I get an error when I have an image with a title that contains  
>> umlauts
>> and use that image inside a document with caption enabled.
>>
> No, don't commit that.
>
> You haven't said which version of Plone you are using. The problem is
> that some versions of Plone return unicode here and some return byte
> strings so the code has to work in both situations. However it is
> important that the regular expression be working on unicode.

Right, my change only worked in 2.5, not in 3.1. So I changed the code
a bit and now it works on both. I commited it in r56399.

/Tim


More information about the kupu-dev mailing list