Tried decoding a url-encoded
string in the following way
some_string = 'FireShot3%2B%25282%2529.png'
import urllib
res = urllib.unquote(some_string).decode()
res
u'FireShot3+%282%29.png'
Original string is FireShot3 (2).png
. Any help would be appreciated.
Answer:
urllib.unquote_plus(urllib.unquote_plus(some_string))
due to double encoding.