Bad encoding in URL

Поиск
Список
Период
Сортировка
Искать

Bad encoding in URL

От:
"HR" <hre@netpointers.com>
Дата:
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

От:
Theodore Petrosky <tedpet5@yahoo.com>
Дата:
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  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

От:
"George Weaver" <georgew1@mts.net>
Дата:

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" 
To: 
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
>


FAQ