Can't print Chinese to HTTP

Gnarlodious gnarlodious at gmail.com
Tue Dec 1 08:27:22 EST 2009


On Nov 30, 5:53 am, "Martin v. Löwis" wrote:

> #!/usr/bin/python
> print("Content-type:text/plain;charset=utf-8\n\n")
> sys.stdout.buffer.write('晉\n'.encode("utf-8"))

Does this work for anyone? Because all I get is a blank page. Nothing.
If I can establish what SHOULD work, maybe I can diagnose this
problem.

-- Gnarlie



More information about the Python-list mailing list