We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b385c73 commit e7eb497Copy full SHA for e7eb497
1 file changed
ietf/meeting/forms.py
@@ -1,6 +1,7 @@
1
import datetime
2
import os
3
import re
4
+import codecs
5
6
from django import forms
7
from django.core.validators import ValidationError
@@ -304,7 +305,7 @@ def save_agenda(self):
304
305
directory = os.path.dirname(path)
306
if not os.path.exists(directory):
307
os.makedirs(directory)
- with open(path, "w") as file:
308
+ with codecs.open(path, "w", encoding='utf-8') as file:
309
file.write(self.cleaned_data['agenda'])
310
311
0 commit comments