Thread: Bad encoding in URL

Bad encoding in URL

From
"HR"
Date:
Hi

I have some URLs in a database but some of the URL contain %3A and so on..

Is there an easy way of converting '%3A' to ':' ???

I cannot find any replace(String str, String str) among the string
functions.

ThankYou.




Re: Bad encoding in URL

From
Theodore Petrosky
Date:
Maybe you want to look here:

http://www.brasileiro.net/postgres/cookbook/

mimic oracle's replace function.  versions in pltcl
and plpgsql. 

If the function you want isn't built in to
posgresql...

Ted

--- HR <hre@netpointers.com> wrote:
> Hi
> 
> I have some URLs in a database but some of the URL
> contain %3A and so on..
> 
> Is there an easy way of converting '%3A' to ':' ???
> 
> I cannot find any replace(String str, String str)
> among the string
> functions.
> 
> ThankYou.
> 
> 
> 
> ---------------------------(end of
> broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please
> send an appropriate
>       subscribe-nomail command to
> majordomo@postgresql.org so that your
>       message can get through to the mailing list cleanly

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


Re: Bad encoding in URL

From
"George Weaver"
Date:
From the manual:
     replace(string text, from text, to text) text Replace all occurrences
in string of substring from with substring to  replace('abcdefabcdef', 'cd',
'XX') abXXefabXXef

HTH.
George

----- Original Message ----- 
From: "HR" <hre@netpointers.com>
To: <pgsql-sql@postgresql.org>
Sent: Monday, October 06, 2003 5:45 AM
Subject: [SQL] Bad encoding in URL


> Hi
>
> I have some URLs in a database but some of the URL contain %3A and so on..
>
> Is there an easy way of converting '%3A' to ':' ???
>
> I cannot find any replace(String str, String str) among the string
> functions.
>
> ThankYou.
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
>       subscribe-nomail command to majordomo@postgresql.org so that your
>       message can get through to the mailing list cleanly
>