[kupu-dev] UnicodeDecodeError with umlauts in image title
Danny Bloemendaal
danny.bloemendaal at informaat.nl
Mon Jul 14 14:36:04 CEST 2008
revision 56306. If I update to a newer version then it will break IE
with obscure js errors. I reported this to duncan and guido. No
reaction so far.
But what I see here is that a user inserts an image (captioned)
(without weird characters in any title/description) and then upon save
he gets the error.
On 14 jul 2008, at 14:26, Tim Terlegård wrote:
> 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