Help needed with python unicode cgi-bin script

John Machin sjmachin at lexicon.net
Tue Dec 11 19:24:37 EST 2007


On Dec 12, 11:06 am, "weheh" <we... at verizon.net> wrote:
> p.s. I modified the code to break things out more explicitly:
>
> #!C:/Program Files/Python23/python.exe
> import cgi, cgitb
> import sys, codecs
> import os,msvcrt
>
> cgitb.enable()
>
> print u"""Content-Type: text/html
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
> <html xmlns="http://www.w3.org/1999/xhtml" lang="en,sp,fr"
> xml:lang="en,sp,fr">
> <head>
> <meta http-equiv="content-type" content="text/html; charset=utf8"

WTF?




More information about the Python-list mailing list