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 <foo@meisterderspiele.de>) |
| Ответы |
Re: How to convert HEX to ASCII?
|
| Список | pgsql-general |
On 2 December 2011 13:18, Torsten Zuehlsdorff <foo@meisterderspiele.de> 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 по дате отправления: