Re: URL Character Decoding

2006-01-29 Thread Kirk McDonald
Paul McGuire wrote: > "Kirk McDonald" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>If you have a link such as, e.g.: >> >>Main menu! >> >>The space will be translated to the character code '%20' when you later >>retrieve the GET data. >> >>I guess what I'm asking is: Is there

Re: URL Character Decoding

2006-01-29 Thread Paul McGuire
"Kirk McDonald" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > If you have a link such as, e.g.: > > Main menu! > > The space will be translated to the character code '%20' when you later > retrieve the GET data. > > I guess what I'm asking is: Is there a library function (in Python

Re: URL Character Decoding

2006-01-29 Thread Kirk McDonald
Kirk McDonald wrote: > Actually, I just noticed this doesn't really work at all. The URL > character codes are in hex, so not only does the regex not match what it > should, but sub_func fails miserably. See why I wanted a library function? > > -Kirk McDonald Not to keep talking to myself, but

Re: URL Character Decoding

2006-01-29 Thread Kirk McDonald
Kirk McDonald wrote: > If you have a link such as, e.g.: > > Main menu! > > The space will be translated to the character code '%20' when you later > retrieve the GET data. Not knowing if there was a library function that > would convert these back to their actual characters, I've written the

URL Character Decoding

2006-01-29 Thread Kirk McDonald
If you have a link such as, e.g.: Main menu! The space will be translated to the character code '%20' when you later retrieve the GET data. Not knowing if there was a library function that would convert these back to their actual characters, I've written the following: import re def sub_func