utf8 in pastebin fixed

This commit is contained in:
cloveranon
2019-12-18 13:41:54 -05:00
parent b8b7fe4337
commit c91c9cec9c
+1 -1
View File
@@ -33,5 +33,5 @@ for sect in sections[2:][:-1]:
else:
title=story[:30]
title=filename(title)+'.txt'
with Path('prompts', category, title).open('w') as f:
with Path('prompts', category, title).open('w', encoding='UTF-8') as f:
f.write(re.sub(r'^\([^\)]+\)\n', '', story))