Skip to content

Commit cb4bf73

Browse files
committed
Specify encoding in make_readme.py to avoid UnicodeEncodeError
1 parent 028ae38 commit cb4bf73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/make_readme.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def create_readme():
6767

6868
data = data.replace('$PLATFORM$', platform_str)
6969

70-
write_file(os.path.join(output_dir, 'README.txt'), data)
70+
write_file(os.path.join(output_dir, 'README.txt'), data.encode('utf-8'))
7171
if not options.quiet:
7272
sys.stdout.write('Creating README.TXT file.\n')
7373

0 commit comments

Comments
 (0)