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