0

html POST method decoded my string like this:

Ostrołęka => Ostro%C5%82%C4%99ka

How do I encode it into readable form in Python?

Sorry for possible duplicate.

EDIT: Solution in 'possible duplicate' doesn't solve above problem

1 Answers1

0

Python 2:

from urllib import unquote
x = unquote('Ostro%C5%82%C4%99ka')

Python 3:

from urllib.parse import unquote
x = unquote('Ostro%C5%82%C4%99ka')
John Gordon
  • 29,573
  • 7
  • 33
  • 58