Re: Where to look up "%20"-like chars for use with HTML?
On Wednesday 18 September 2002 09:35, Andre Berger wrote:
> I have to mask a "&" in a URL (HTML 4.01 Transitional, text/html;
> charset=utf-8) that pointing to a CGI script; "&" doesn't work.
> You can mask special characters a la "%20" in HTML. What encoding is
> this, and where can I find a listing?
>
It is the ascii number for the symbol in hexidecimal. Since I use python here
is a quick demo with it:
$ python
>>> ord(' ')
32
>>> hex(32)
'0x20'
>>> ord('&')
38
>>> hex(38)
'0x26'
So %26 should give you a '&' character.
Reply to: