Explicitly set UTF-8 encoding for HTML in examples (Fixes #132)
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Microdot GPIO Example</title>
|
<title>Microdot GPIO Example</title>
|
||||||
|
<meta charset="UTF-8">
|
||||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
||||||
<script>
|
<script>
|
||||||
function getCookie(name) {
|
function getCookie(name) {
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ htmldoc = '''<!DOCTYPE html>
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Microdot Example Page</title>
|
<title>Microdot Example Page</title>
|
||||||
|
<meta charset="UTF-8">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ htmldoc = '''<!DOCTYPE html>
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Microdot Example Page</title>
|
<title>Microdot Example Page</title>
|
||||||
|
<meta charset="UTF-8">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ htmldoc = '''<!DOCTYPE html>
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Microdot Example Page</title>
|
<title>Microdot Example Page</title>
|
||||||
|
<meta charset="UTF-8">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ htmldoc = '''<!DOCTYPE html>
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Microdot Example Page</title>
|
<title>Microdot Example Page</title>
|
||||||
|
<meta charset="UTF-8">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ BASE_TEMPLATE = '''<!doctype html>
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Microdot login example</title>
|
<title>Microdot login example</title>
|
||||||
|
<meta charset="UTF-8">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Microdot login example</h1>
|
<h1>Microdot login example</h1>
|
||||||
@@ -17,7 +18,7 @@ LOGGED_OUT = '''<p>You are not logged in.</p>
|
|||||||
<form method="POST">
|
<form method="POST">
|
||||||
<p>
|
<p>
|
||||||
Username:
|
Username:
|
||||||
<input type="text" name="username" autofocus />
|
<input name="username" autofocus />
|
||||||
</p>
|
</p>
|
||||||
<input type="submit" value="Submit" />
|
<input type="submit" value="Submit" />
|
||||||
</form>'''
|
</form>'''
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Static File Serving Demo</title>
|
<title>Static File Serving Demo</title>
|
||||||
|
<meta charset="UTF-8">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Static File Serving Demo</h1>
|
<h1>Static File Serving Demo</h1>
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ def index(request):
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Microdot Video Streaming</title>
|
<title>Microdot Video Streaming</title>
|
||||||
|
<meta charset="UTF-8">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Microdot Video Streaming</h1>
|
<h1>Microdot Video Streaming</h1>
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ def index(request):
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Microdot Video Streaming</title>
|
<title>Microdot Video Streaming</title>
|
||||||
|
<meta charset="UTF-8">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Microdot Video Streaming</h1>
|
<h1>Microdot Video Streaming</h1>
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Microdot + Jinja example</title>
|
<title>Microdot + Jinja example</title>
|
||||||
|
<meta charset="UTF-8">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Microdot + Jinja example</h1>
|
<h1>Microdot + Jinja example</h1>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Microdot + uTemplate example</title>
|
<title>Microdot + uTemplate example</title>
|
||||||
|
<meta charset="UTF-8">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Microdot + uTemplate example</h1>
|
<h1>Microdot + uTemplate example</h1>
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ htmldoc = '''<!DOCTYPE html>
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Microdot Example Page</title>
|
<title>Microdot Example Page</title>
|
||||||
|
<meta charset="UTF-8">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ htmldoc = '''<!DOCTYPE html>
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Microdot Example Page</title>
|
<title>Microdot Example Page</title>
|
||||||
|
<meta charset="UTF-8">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Microdot TLS WebSocket Demo</title>
|
<title>Microdot TLS WebSocket Demo</title>
|
||||||
|
<meta charset="UTF-8">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Microdot TLS WebSocket Demo</h1>
|
<h1>Microdot TLS WebSocket Demo</h1>
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Microdot Upload Example</title>
|
<title>Microdot Upload Example</title>
|
||||||
|
<meta charset="UTF-8">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Microdot Upload Example</h1>
|
<h1>Microdot Upload Example</h1>
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Microdot WebSocket Demo</title>
|
<title>Microdot WebSocket Demo</title>
|
||||||
|
<meta charset="UTF-8">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Microdot WebSocket Demo</h1>
|
<h1>Microdot WebSocket Demo</h1>
|
||||||
|
|||||||
Reference in New Issue
Block a user