I'm using Flask, to capture a text with an Html form.
In the form I have put the acept-encoding=ISO-8859-1
.
But when in the form I type a tiny letter, it turns out that through the POST of the form, I get a UNICODE, with ordinal 65533.
And of course, I do not know, what coding is giving me back this year
Since if in python I do letra=u'ñ'
, if you return the code of the eñe in ISO-8859-1 and translate it to an html entity, that would be ñ
So I do not know if the POST does not have the proper encoding, which I do not know if it can be forced in some way. Or is that the Flask internally does some translation. Does anyone know how to translate it to html entities or translate it to the standard encoding of latin1?