Created
September 16, 2013 18:01
-
-
Save cjohansen/6584215 to your computer and use it in GitHub Desktop.
I'm looking for a way to dynamically specify the encoding of a file that is loaded into the browser locally as a file://
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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