我有一个GET
参数 value Krak%F3w
。它应该被解码为克拉科夫。我试过了urlunquote
,但是当我尝试将它打印到控制台时,我得到了这个:
UnicodeEncodeError at /someurl.html
'charmap' codec can't encode character u'\ufffd' in position 4: character maps to <undefined>
和这个:
Unicode error hint
The string that could not be encoded/decoded was: Krak�w