How can I decode percent-encoded characters to ordinary unicode characters?
- Input string:
Lech_Kaczy%C5%84ski - Desired output:
Lech_Kaczyński
I tried urllib.unquote(text) but then got Lech_Kaczy\xc5\x84ski.
I also tried the following, but it doesn't change the result:
# -*- coding: utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding("utf-8")