Explicitly define charset

This commit is contained in:
Marius Lindvall 2019-10-14 15:53:30 +02:00
parent ad52c8f4d0
commit 571913bb91
3 changed files with 4 additions and 2 deletions

View file

@ -4,7 +4,7 @@
// entries needed for clientside processing.
include("./include/inc.php");
header("Content-Type: text/javascript");
header("Content-Type: text/javascript; charset=utf-8");
?>
var TILE_URI = <?php echo json_encode(getConfig("map_tile_uri")); ?>;

View file

@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- Load Leaflet for the map. -->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.5.1/dist/leaflet.css"
integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
@ -91,6 +92,6 @@
</div>
</div>
<script src="./main.js"></script>
<script src="./main.js" charset="UTF-8"></script>
</body>
</html>

View file

@ -1,3 +1,4 @@
@charset "UTF-8";
/* The main stylesheet for the Hauk web view interface. */
* {