You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "test.py", line 5, in <module>
headers.add('Content-Disposition', 'attachment', filename=u'åäö.html')
File "/tmp/werkzeug/werkzeug/datastructures.py", line 1105, in add
_value = _options_header_vkw(_value, kw)
File "/tmp/werkzeug/werkzeug/datastructures.py", line 841, in _options_header_vkw
for k, v in kw.items()))
File "/tmp/werkzeug/werkzeug/http.py", line 214, in dump_options_header
segments.append('%s=%s' % (key, quote_header_value(value)))
File "/tmp/werkzeug/werkzeug/http.py", line 167, in quote_header_value
value = str(value)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)
The text was updated successfully, but these errors were encountered:
I am visiting this issue while making some commentary in the same area, but it seems that it should be closed/won't-fix, since non-ASCII and non-latin1 representations in HTTP headers can only be done in accordance with RFC 8187.
The text was updated successfully, but these errors were encountered: