Christian Boos wrote:
> Looks like the fileobj.read() above returns a snippet which is already a 
> unicode string, and in the case of this admin_plugins.html file this 
> snippet contains:
> 
>     a.text("\u2013")
> 
> as a replacement for:
> 
>    a.text("–")
> 
> I haven't looked at the exact mechanism in Babel, but at least it seems 
> very wrong to decode an unicode string... as this goes through an 
> intermediate encode step using 'ascii' (see 
> http://trac.edgewall.org/wiki/UnicodeEncodeError#decode for the gory 
> details).

Not sure about that. I have found the cause as being [genshi:1157],
where the default encoding was changed from utf-8 to `None`.

My feeling is that we just need to pass an 'encoding': 'utf-8' somewhere
in setup.py, but I haven't found where.

How is trac.dist.extract_javascript_script? I can't find a reference to
that anywhere in the code, and that's where the encoding option is missing.

-- Remy

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to