You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module1.py contains utf-8 encoding declaration and defines doc strings with "ś" character. module2.py defines a class, which inherits from class defined in module1.py.
index.html generated by Sphinx running under Python 2 contains:
class module1.Class1
get_myproperty()
doc string of get_myproperty. ś
myproperty None
doc string of myproperty. ś
set_myproperty(value)
doc string of set_myproperty. ś
class module2.Class2
get_myproperty()
doc string of get_myproperty. ś
myproperty None
doc string of myproperty. �
set_myproperty(value)
doc string of set_myproperty. ś
The documentation of module2.Class2.myproperty contains "Å�" character instead of "ś".
Sphinx uses incorrect encoding of doc strings of properties inherited from class defined in different module containing correct encoding declaration.
This issue is similar to issue #1185. Before commit 56e385ec3f5b, there was an exception, now Sphinx uses incorrect encoding.
Example (reproducible with Python 2):
module1.py contains utf-8 encoding declaration and defines doc strings with "ś" character. module2.py defines a class, which inherits from class defined in module1.py.
index.html generated by Sphinx running under Python 2 contains:
The documentation of module2.Class2.myproperty contains "Å�" character instead of "ś".
The text was updated successfully, but these errors were encountered: