From: | Arnaud Lesauvage <thewild(at)freesurf(dot)fr> |
---|---|
To: | Tino Wildenhain <tino(at)wildenhain(dot)de> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: URL Decoding |
Date: | 2006-11-23 11:20:24 |
Message-ID: | 456583F8.6040906@freesurf.fr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Tino Wildenhain a écrit :
> 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 :-)
Thanks for the tip Tino, but that means installing pythonu.
I'd like to avoid that, since I won't use it for anything
but this function.
--
Arnaud
From | Date | Subject | |
---|---|---|---|
Next Message | Greg Sabino Mullane | 2006-11-23 12:07:11 | Re: Trapping PL/Perl spi_query_exec errors |
Previous Message | Albe Laurenz | 2006-11-23 11:07:02 | Re: 2 problems of my postgresql |