|
# -*- coding: utf-8 -*-
import python_handler
http_context.set_utf8_html_response()
encoded = python_handler.encode_url_part ("test: тест")
http_context.write ("<b>Encoded</b>: %s<br/>" % encoded)
http_context.write ("<b>Decoded</b>: %s" % python_handler.decode_url (encoded) )
http_context.flush ()
http_context.set_utf8_html_response()
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.