Skip to content

Commit a275cb9

Browse files
authored
Use utf-8 to read README
On Windows, default file encoding is not UTF-8 in most environments.
1 parent 34c2a80 commit a275cb9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/tutorials/packaging-projects.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Open :file:`setup.py` and enter the following content. Update the package name t
6262
6363
import setuptools
6464
65-
with open("README.md", "r") as fh:
65+
with open("README.md", "r", encoding="utf-8") as fh:
6666
long_description = fh.read()
6767
6868
setuptools.setup(

0 commit comments

Comments
 (0)