Skip to content

Commit b3351e4

Browse files
authored
Merge pull request karanveerm#8 from jakiro2017/master
add utf8 support for quiz file
2 parents f51be2b + 5c86c73 commit b3351e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quizgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def _parse_new_question(self, line_group):
161161
def parse(self):
162162
# Open the file and read in the lines
163163
try:
164-
quizfile = open(self.filename, 'r')
164+
quizfile = open(self.filename, 'r',encoding="utf8")
165165
except IOError:
166166
raise Exception('No file named %s found' % self.filename)
167167

0 commit comments

Comments
 (0)