Commits

Cédric Bonhomme committed 00b10b2

UTF-8 charset

  • Participants
  • Parent commits 767dae7

Comments (0)

Files changed (5)

README.md

File contents unchanged.
 resp = None
 try:
     request = urllib.request.urlopen("http://"+address+"/photos/list.json?pageSize=1000")
-    text = request.read()
-    resp = json.loads(text.decode())
+    text = request.read().decode("utf-8")
+    resp = json.loads(text)
 except:
     html += '</head>\n'
     html += '<body>\n'
             html += "<br />\n"
             html += "</body>\n</html>"
 
-
 # Finally print the web page.
-print("Content-type:text/html\r\n\r\n")
+print("Content-type:text/html; Accept-Charset: utf-8")
+print("")
 print(html)

pattern.png

Old
Old image
New
New image

scripts.js

File contents unchanged.

style.css

File contents unchanged.