Re: URL Decoding

Поиск
Список
Период
Сортировка
От Tino Wildenhain
Тема Re: URL Decoding
Дата
Msg-id 45645FC5.1090400@wildenhain.de
обсуждение исходный текст
Ответ на URL Decoding  (Arnaud Lesauvage <thewild@freesurf.fr>)
Ответы Re: URL Decoding  (Arnaud Lesauvage <thewild@freesurf.fr>)
Список pgsql-general
Arnaud Lesauvage schrieb:
> Hi List !
>
> I am looking for an easy URL decoding function.
> I thought about using regexp_replace, but I cna't get it to work :
>
> SELECT regexp_replace('foo%B5bar', '%(..)', '\x\\1' , 'g');
>  > 'fooxB5bar'
>
> I wanted to replace %BE with the character \xB5 (µ, I think), but of
> course I am doing this wrong...
> Is there a simple way t odo this ?

I was simply using a stored function using pl/pythonu with
urllib (split and unquote). Works flawlessy :-)

Regards
T.

В списке pgsql-general по дате отправления:

Предыдущее
От: Tony Caduto
Дата:
Сообщение: Re: MSSQL to PostgreSQL : Encoding problem
Следующее
От: Arnaud Lesauvage
Дата:
Сообщение: Re: MSSQL to PostgreSQL : Encoding problem