Hi,
* gilberto dos santos alves <[email protected]> [23.03.2016 16:32]:
> hi. there is a line with
>
> # -*- coding: utf-8 -*-
>
> inside source files?
no, I only have the following setting in my conf.py:
source_encoding = 'utf-8'
For testing, I put ``.. -*- coding: utf-8 -*-`` at the beginning of the RST
source files which contain URLs with German Umlaute, but the problem still keeps
the same.
I think, the problem is that in Python3 strings are unicode by default. In
Python2 you can write ``u'hello world'.decode('utf-8')``, in Python3
``'hello world'.decode('utf-8')`` fails, as normal strings do not have a
decode()-method.
Sadly, I do not know a simple trick to recreate the behavior
of Python2 in Python3 without changing the code quite much..
Greetings,
Bernhard
--
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 https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.