Can't print Chinese to HTTP

Gnarlodious gnarlodious at
Tue Dec 1 14:27:22 CET 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

-- Gnarlie

More information about the Python-list mailing list