Issue #438 resolved

'ascii' can't encode character u'\xe9' in position ....

Anonymous avatarAnonymous created an issue

Hello,

  • I use : Sphinx 0.65, Python 2.6.5 (all from pythonxy latest version) .
  • The command "sphinx-build -b html source dest " give this sphinx error :
    • 'ascii' can't encode character u'\xe9' in position ....
  • encoding of source files in config.py :
    • source_encoding = 'ISO-8859-1'
  • In my rst file, I had :
    • .. automodule:: scenarii.essais.why_sphinx_error
    • :members:
    • :undoc-members:
    • :show-inheritance:
  • Where "why_sphinx_error.py" is :

.

#!/usr/bin/python
# -*- coding: ISO-8859-1 -*-

"""
at this place "é" give no sphinx error
"""


class ButThisYes(object):
    """
    
     but in this place, "é" give sphinx error :
     'ascii' can't encode character u'\xe9' in position ....
     
     why ?
    """
    
    def __init__(self):
        """
         but in this place, "é" give sphinx error :
         'ascii' can't encode character u'\xe9' in position ....

         why ?
        """

-------------------

Merci pour votre réponse.

Comments (11)

  1. Anonymous

    Thank's for the response (my english is very poor)

    .

    I have no other message that :

    .

    C:\Users\mks>sphinx-build -b html D:/workspace/pyScenarii/src/scenarii/doc/Developers_Guide/source D:/workspace/pyScenarii/src/scenarii/doc/Developers_Guide/build

    Running Sphinx v0.6.6

    loading pickled environment... done

    building [html]: targets for 0 source files that are out of date

    updating environment: 0 added, 2 changed, 53 removed

    reading sources... [ 50%] index

    Sphinx error:

    'ascii' codec can't encode character u'\xe9' in position 22: ordinal not in range(128)

  2. Ricardo Cardona Ramirez

    I used in conf.py language = 'es' and get the same error.

    The error does not occur when i commented the line language = 'es'

    My sphinx versión is 1.1.3 Jython 2.5.2

    If you want I could create a small project that reproduces the problem

  3. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.