this is a bit muddy to me:
Searching the documents at http://sphinx.pocoo.org/search.html?q=latin
for latin, shows a reference about include files - indicating their encoding
(Sphinx 0.4.3 and on...)
Since a search for UTF shows a few references, including one stating "all
documentation source files must be in UTF-8", I'll assume (w/o checking the
code) that is still true. (Strangely searching for UTF-8 returned none of
the UTF-8 references.)
Here's what the include directive does:
encoding = options.get('encoding', 'utf-8')
try:
f = codecs.open(fn, 'r', encoding)
text = f.read()
f.close()
So I'll guess you can use this to filter your source files (?).
Regards,
Yarko
On Mon, Oct 13, 2008 at 12:55 AM, Bruce Eckel <[EMAIL PROTECTED]> wrote:
> OK, the next question is how to make the change. The only thing I found in
> the docs was a reference to the conf.py file, but changing that (to, for
> example, latin-1 which should take care of it) doesn't have any effect.
> Thanks for any help.
>
>
> On Sun, Oct 12, 2008 at 8:20 PM, Peter Hoffmann <[EMAIL PROTECTED]> wrote:
>
>>
>> The problem is the word Façade. As far as I know sphinx only supports
>> utf-8 file encodings, but your file changeInterface/
>> changeInterface.txt (and some others too) use non ascii characters
>> with 8859 file encoding.
>>
>> If you change the file encoding to utf-8 and try again, it should work
>> (beside some other errors due to wrong length of underline for
>> headings).
>>
>> Regards Peter
>>
>>
>> On 13 Okt., 03:10, "Bruce Eckel" <[EMAIL PROTECTED]> wrote:
>> > I used sphinx-quickstart to get started, and I think I followed the
>> > instructions correctly. I've attached my project, which gives me the
>> > following error:
>> > $ make html
>> > mkdir -p _build/html _build/doctrees
>> > sphinx-build -b html -d _build/doctrees . _build/html
>> > Sphinx v0.4.3, building html
>> > trying to load pickled env... not found
>> > building [html]: targets for 20 source files that are out of date
>> > updating environment: 20 added, 0 changed, 0 removed
>> > reading... appFrameworks/appFrameworks changeInterface/changeInterface
>> > Exception occurred:
>> > File "C:\Python\Lib\site-packages\docutils\io.py", line 124, in
>> > decode error_details))
>> > UnicodeError: Unable to decode input data. Tried the following
>> encodings:
>> > 'utf-8'.
>> > (UnicodeDecodeError: 'utf8' codec can't decode bytes in position
>> 432-434:
>> > invalid data)
>> > The full traceback has been saved in
>> > c:\docume~1\bruce\locals~1\temp\sphinx-err-o_ecqz.log, if you want to
>> report
>> > the issue to the author.
>> > Please also report this if it was a user error, so that a better error
>> > message c
>> > an be provided next time.
>> > Send reports to [EMAIL PROTECTED] Thanks!
>> > make: *** [html] Error 1
>> >
>> > --
>> > Bruce Eckel
>> >
>> > book.zip
>> > 267KAnzeigenHerunterladen
>>
>>
>
>
> --
> Bruce Eckel
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---