Skip to content

Commit 2f48dfc

Browse files
committed
Encode with UTF-8 to avoid crashing on Unicode content
- Legacy-Id: 4773
1 parent bb30e1d commit 2f48dfc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/wgcharter/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def save(self, wg, rev):
284284
if self.cleaned_data['txt']:
285285
destination.write(self.cleaned_data['txt'])
286286
else:
287-
destination.write(self.cleaned_data['content'])
287+
destination.write(self.cleaned_data['content'].encode("utf-8"))
288288

289289
@role_required('Area Director','Secretariat')
290290
def submit(request, name, option=None):

0 commit comments

Comments
 (0)