URL Decoding - Mailing list pgsql-general

From Arnaud Lesauvage
Subject URL Decoding
Date
Msg-id 45645275.5020900@freesurf.fr
Whole thread Raw
Responses Re: URL Decoding  (Tino Wildenhain <tino@wildenhain.de>)
List pgsql-general
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 ?

Thanks a lot !

--
Arnaud

pgsql-general by date:

Previous
From: "Albe Laurenz"
Date:
Subject: Re: Vienna migrating some DB's from Oracle to PG
Next
From: Alvaro Herrera
Date:
Subject: Re: MSSQL to PostgreSQL : Encoding problem