jczic / MicroWebSrv

A micro HTTP Web server that supports WebSockets, html/python language templating and routing handlers, for MicroPython (used on Pycom modules & ESP32)
https://github.com/jczic/MicroWebSrv
MIT License
641 stars 116 forks source link

Fixed unquote in GET and POST requests for alien characters #31

Closed JK-de closed 6 years ago

JK-de commented 6 years ago

Fixed unquote in GET and POST requests for German umlauts 'äöüÄÖÜ' and other alien characters.

If characters like 'äöüÄÖÜ' are typed in a form input the browser converts FIRST to utf-8 and SECOND escapes the sequence.

At the server the string has to be unquoted (%xx -> X) first and than convertid from utf-8 to unicode

jczic commented 6 years ago

:)