[kupu-dev] UnicodeDecodeError with umlauts in image title
Tim Terlegård
tim.terlegard at valentinewebsystems.se
Mon Jul 14 14:26:17 CEST 2008
You say "lately", do you mean after my commit a few days ago? I hope
not :-)
If you customized the caption template or have non-ascii characters in
the title or descripton of an image that you have inside a document, you
might get this unicode error.
/Tim
On Jul 14, 2008, at 2:19 PM, Danny Bloemendaal wrote:
> I'm suddenly seeing unicode errors with kupu and images lately in 2.5.
> Is this related?
>
>
> On 10 jul 2008, at 09:01, Tim Terlegård wrote:
>
>> 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
>> _______________________________________________
>> kupu-dev mailing list
>> kupu-dev at codespeak.net
>> http://codespeak.net/mailman/listinfo/kupu-dev
>
> _______________________________________________
> kupu-dev mailing list
> kupu-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/kupu-dev
More information about the kupu-dev
mailing list