Re: How to convert HEX to ASCII?

Поиск
Список
Период
Сортировка
Искать
От
Damien Churchill
Тема
Re: How to convert HEX to ASCII?
Дата
Msg-id
CAFtEh-cRpiUnnAjD2Mg1nJwnzWomnNNcHWx7GeRJPWGCEMhT7g@mail.gmail.com
Ответ на
How to convert HEX to ASCII? (Torsten Zuehlsdorff)
Список
Дерево обсуждения
How to convert HEX to ASCII? Torsten Zuehlsdorff <foo@meisterderspiele.de>
Re: How to convert HEX to ASCII? Damien Churchill <damoxc@gmail.com>
Re: How to convert HEX to ASCII? Torsten Zuehlsdorff <foo@meisterderspiele.de>
Re: How to convert HEX to ASCII? Merlin Moncure <mmoncure@gmail.com>
Re: How to convert HEX to ASCII? Marti Raudsepp <marti@juffo.org>
Re: How to convert HEX to ASCII? Torsten Zühlsdorff <foo@meisterderspiele.de>
Re: How to convert HEX to ASCII? Pavel Stehule <pavel.stehule@gmail.com>
Re: How to convert HEX to ASCII? Merlin Moncure <mmoncure@gmail.com>
Re: How to convert HEX to ASCII? Pavel Stehule <pavel.stehule@gmail.com>
Re: How to convert HEX to ASCII? Merlin Moncure <mmoncure@gmail.com>
Re: How to convert HEX to ASCII? Pavel Stehule <pavel.stehule@gmail.com>
Re: How to convert HEX to ASCII? Merlin Moncure <mmoncure@gmail.com>
Re: How to convert HEX to ASCII? Pavel Stehule <pavel.stehule@gmail.com>
On 2 December 2011 13:18, Torsten Zuehlsdorff  wrote:
> Hello,
>
> after several attempts I have finally succeeded in developing a urlencode()
> function to encode text correctly like defined in RFC 1738.
>
> Now i have a big problem: how to decode the text?
>
> Example:
> # SELECT urlencode('Hellö World!');
>       urlencode
> -----------------------
>  Hell%C3%B6%20World%21
>
> Does anybody know a way to convert '%21' back to '!' and '%C3%B6' to 'ö'?
>

I've extracted the unquote method [0] from urllib in the python stdlib
that decodes urlencoded strings. Hopefully be some use!

[0] http://pastie.org/2954968
В списке pgsql-general по дате отправления
От: Torsten Zuehlsdorff
Дата:
Сообщение: How to convert HEX to ASCII?
От: Gavin Mitchell
Дата:
FAQ