Closed sharpaper closed 1 year ago
The explanation here could be that application/x-www-form-urlencoded
the POST body is URL-encoded just like a GET query string, whereas multipart/form-data
is not URL-encoded. So I think it's a Bottle bug because it tries to encode a string that is already in UTF-8?
The issue was fixed in master ( see #1111 and 5813b87 ) but not back-ported to 0.12 yet.
Is Bottle 0.13 available on pypi?
Backportet to 0.12.24
Problem: when using
<form enctype="multipart/form-data">
, FormsDict does not return the correct unicode values for input fields.How to reproduce:
index_post
output:but if you remove
enctype="multipart/form-data"
the output is magically correct:What is going on? Is this the correct behavior? I don't really understand if it's a bug or not...