Skip to content

Instantly share code, notes, and snippets.

@mattattui
Last active September 25, 2015 06:38
Show Gist options
  • Save mattattui/879288 to your computer and use it in GitHub Desktop.
Save mattattui/879288 to your computer and use it in GitHub Desktop.
Specifying UTF-8 for an HTML file
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>My example page</title>
</head>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Page Title</title>
</head>
@mattattui
Copy link
Author

See http://inanimatt.com/php-charsets.php for full explanation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment