]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
Fixed encoding issues on windows 28/head
authorAbiola <gbozee@gmail.com>
Tue, 17 Jul 2018 20:38:38 +0000 (21:38 +0100)
committerGitHub <noreply@github.com>
Tue, 17 Jul 2018 20:38:38 +0000 (21:38 +0100)
Attempting to install the package on windows throws `UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 1549: character maps to <undefined>`

This is an attempted fix

setup.py

index 646c76139d1ab972482610d85fbbca68bf7803df..b6a2205b2d306fd1caf1e2c4eb377fd01cbf76d6 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -20,7 +20,7 @@ def get_long_description():
     """
     Return the README.
     """
-    return open('README.md', 'r').read()
+    return open('README.md', 'r', encoding="utf8").read()
 
 
 def get_packages(package):