1
0
Fork 0

Make sure python knows about utf-8.

This commit is contained in:
flabbergast 2014-09-08 21:27:18 +01:00
parent 715f10f8b1
commit e557366978
4 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,5 @@
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import gps
import os

View File

@ -1,4 +1,5 @@
#! /usr/bin/python
# -*- coding: UTF-8 -*-
#
# basic skeleton from:
# Dan Mandle http://dan.mandle.me September 2012