Skip to content

Commit e7eb497

Browse files
committed
Save submitted session agendas as UTF-8, not as ascii.
- Legacy-Id: 11551
1 parent b385c73 commit e7eb497

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ietf/meeting/forms.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import datetime
22
import os
33
import re
4+
import codecs
45

56
from django import forms
67
from django.core.validators import ValidationError
@@ -304,7 +305,7 @@ def save_agenda(self):
304305
directory = os.path.dirname(path)
305306
if not os.path.exists(directory):
306307
os.makedirs(directory)
307-
with open(path, "w") as file:
308+
with codecs.open(path, "w", encoding='utf-8') as file:
308309
file.write(self.cleaned_data['agenda'])
309310

310311

0 commit comments

Comments
 (0)