Lars Lingner napisaƂ(a):

Hi,

> I'm working on an multilingual setup using Sphinx. Therefore I'm using
> the CollectLabelsBuilder from [1] and its working well for English text.
> If I have titles containing German umlauts then I hit on the following
> error:
> 
> UnicodeEncodeError: 'ascii' codec can't encode character...
...
> Its now working, I get the title with umlauts collected. But I'm not
> sure if this is the right way to patch. Maybe its just an coincidence...
> 
> Would the code above also work with other languages like the Asian ones,
> French, Greek... ?

I am far away from being a unicode master, but in my software
which accepts many variously encoded inputs, I am using a piece
of code similar to to_unicode() function from Trac package:

http://trac.edgewall.org/browser/trunk/trac/util/text.py

It works quite well.

-- 
Regards,
Wojtek Walczak,
http://tosh.pl/gminick/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to