1
0
Fork 0

Make sure python knows about utf-8.

master
flabbergast 9 years ago
parent 715f10f8b1
commit e557366978
  1. 3
      cgi-bin/password.py
  2. 3
      cgi-bin/serverconfig.py
  3. 1
      time-from-gps/time-from-gps.py
  4. 1
      watcher-daemon/gps-watcher.py

@ -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…
Cancel
Save