We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bf53db commit fa1a5e3Copy full SHA for fa1a5e3
flask_apidoc/apidoc.py
@@ -1,3 +1,4 @@
1
+import codecs
2
import json
3
import mimetypes
4
@@ -91,7 +92,7 @@ def __send_api_file(self, file_name):
91
92
93
file_name = join(self.app.static_folder, file_name)
94
- with open(file_name, 'rt') as file:
95
+ with codecs.open(file_name, 'r', 'utf-8') as file:
96
data = file.read()
97
98
# replaces the hard coded url by the
@@ -128,7 +129,7 @@ def __send_main_file(self, file_name):
128
129
130
131
132
133
134
135
data = data.replace(
0 commit comments