Make sure python knows about utf-8.
This commit is contained in:
parent
715f10f8b1
commit
e557366978
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: UTF-8 -*-
|
||||
|
||||
import subprocess
|
||||
import sys
|
||||
|
@ -34,7 +35,7 @@ and the same with the other file.
|
|||
</body></html>
|
||||
"""
|
||||
|
||||
print "Content-Type: text/html" # HTML is following
|
||||
print "Content-Type: text/html;charset=utf-8" # HTML is following
|
||||
print # blank line, end of headers
|
||||
|
||||
# print html header
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: UTF-8 -*-
|
||||
|
||||
import subprocess
|
||||
import sys
|
||||
|
@ -6,7 +7,7 @@ import sys
|
|||
import cgi
|
||||
import cgitb; cgitb.enable() # for troubleshooting
|
||||
|
||||
print "Content-Type: text/html" # HTML is following
|
||||
print "Content-Type: text/html;charset=utf-8" # HTML is following
|
||||
print # blank line, end of headers
|
||||
|
||||
# print html header
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: UTF-8 -*-
|
||||
|
||||
import gps
|
||||
import os
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#! /usr/bin/python
|
||||
# -*- coding: UTF-8 -*-
|
||||
#
|
||||
# basic skeleton from:
|
||||
# Dan Mandle http://dan.mandle.me September 2012
|
||||
|
|
Loading…
Reference in New Issue