On 2011-04-15, Jeff Treviño wrote:
> Hi there,

> I'm writing from the abjad users community - we use python to make
> musical notations. As requested in the sphinx error message, I'm
> forwarding this error to the dev list; also, maybe someone could help
> me fix the problem. I'm using sphinx to build our latex docs and get
> the following ascii encoding range error -

> (the full traceback from the error log:)
> # Sphinx version: 1.0.7
> # Python version: 2.6.6
> # Docutils version: 0.7 release
> # Jinja2 version: 2.5.5

...

>   File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
> python2.6/site-packages/Sphinx-1.0.7-py2.6.egg/sphinx/writers/
> latex.py", line 275, in idescape
>     return str(unicode(id).translate(tex_replace_map))
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in
> position 41: ordinal not in range(128)

\xe1 seems to be "latin small letter a with acute", so maybe setting
the output encoding to latin1 helps?

Otherwise, you might try to add the conversion from "\xe1" to r"\'a"
in the tex_replace_map.

Günter

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

Reply via email to