Hello, all, I am trying to build the Pandas docs <https://github.com/pydata/pandas> and run into the error below. I have isolated the text that seems to be causing this error:
.. _io.unicode: > Dealing with Unicode Data > ~~~~~~~~~~~~~~~~~~~~~~~~~ > The ``encoding`` argument should be used for encoded unicode data, which > will > result in byte strings being decoded to unicode in the result: > .. ipython:: python > *data = 'word,length\nTr\xe4umen,7\nGr\xfc\xdfe,5' > * df = pd.read_csv(StringIO(data), encoding='latin-1') > df > df['word'][1] > Some formats which encode all characters as multiple bytes, like UTF-16, > won't > parse correctly at all without specifying the encoding. Traceback: Traceback (most recent call last): > File "/usr/local/lib/python2.7/dist-packages/sphinx/cmdline.py", line > 247, in main > app.build(force_all, filenames) > File "/usr/local/lib/python2.7/dist-packages/sphinx/application.py", > line 211, in build > self.builder.build_update() > File > "/usr/local/lib/python2.7/dist-packages/sphinx/builders/__init__.py", line > 211, in build_update > 'out of date' % len(to_build)) > File > "/usr/local/lib/python2.7/dist-packages/sphinx/builders/__init__.py", line > 231, in build > purple, length): > File > "/usr/local/lib/python2.7/dist-packages/sphinx/builders/__init__.py", line > 131, in status_iterator > for item in iterable: > File "/usr/local/lib/python2.7/dist-packages/sphinx/environment.py", > line 458, in update_generator > self.read_doc(docname, app=app) > File "/usr/local/lib/python2.7/dist-packages/sphinx/environment.py", > line 609, in read_doc > raise SphinxError(str(err)) > SphinxError: 'utf8' codec can't decode byte 0xe4 in position 34: invalid > continuation byte > > > /usr/local/lib/python2.7/dist-packages/sphinx/environment.py(609)read_doc() It also seems that this error is not being observed by others who build the docs. Is there some special flag to tell Sphinx to read unicode correctly or some way to debug this? Thanks, Conway -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sphinx-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
