File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ def main():
229229 if not args .no_problem_statement and not os .path .exists (
230230 problem_statement_filename
231231 ):
232- with open (problem_statement_filename , "w+" ) as problem_statement_file :
232+ with open (problem_statement_filename , "w+" , encoding = 'utf-8' ) as problem_statement_file :
233233 problem_statement_file .write (
234234 problem_statement_template .substitute (
235235 ** problem_statement .__dict__
@@ -243,7 +243,7 @@ def main():
243243 )
244244 if not os .path .exists (submission_filename ):
245245 logging .info (f"Writing { submission .title_slug } /{ submission_filename } " )
246- sub_file = open (submission_filename , "w+" )
246+ sub_file = open (submission_filename , "w+" , encoding = 'utf-8' )
247247 sub_file .write (submission .code )
248248 sub_file .close ()
249249 else :
You can’t perform that action at this time.
0 commit comments