Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
I'm looking for a way to dynamically specify the encoding of a file that is loaded into the browser locally as a file://
<head></head>
<body>
<script>
document.head.innerHTML += "<meta charset=\"utf-8\">";
document.body.innerHTML += "";
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.