urllib
Special Characters
What if you want to include "?" or "&" in a parameter?
o Same problem (and solution) as including a quote in a string, or <> in XML
- URL encode special characters using "%" followed by a 2-digit hexadecimal code
- o And replace spaces with "+" o
- Character Encoding "#" %23 "$" %24 "%" %25
"&" %26 "+" %2B "," %2C "/" %2F ":" %3A ";" %3B "=" %3D "?" %3F "@" %40 Table 22. 2: URL Encoding
- Character Encoding "#" %23 "$" %24 "%" %25
- o And replace spaces with "+" o
-- DetlevLengsfeld 2006-06-13 23:48:11
| /ExifBilderRename /InterNet /Py2Html /PyLirc /TarFile /expect /memory /pyosd /python-mysql /urllib /xmlrpclib |
Python/Module/urllib (last edited 2009-01-02 11:14:01 by )