Message251985
| Author |
martin.panter |
| Recipients |
Arfrever, martin.panter, orsenthil, pitrou, serhiy.storchaka, vstinner |
| Date |
2015年10月01日.00:49:36 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1443660581.51.0.177414600587.issue25184@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Here is a patch that implements my IRI (Unicode URL) proposal. Differences compared to Serhiy’s patches:
* "file:" URLs use Unicode if possible. Percent encode encoding only used for reserved ASCII characters and undecodable bytes.
* HTTP URLs use UTF-8 and retain surrogate escaping. This means that the links generated by "getobj" pages to "getfile" pages work with troublesome paths.
* Displayed file names are get an ASCII question mark thanks to the "replace" error handler. This means that the generated HTML is now encodable to UTF-8. Serhiy’s path would be displayed something like:
/home/serhiy/py/cpy?thon-3.5/Lib/pydoc.py (invalid filename encoding)
* Added some missing html.escape() calls. |
|