Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML5 / Unicode best practices #6

Open
dogweather opened this issue Mar 5, 2014 · 2 comments
Open

HTML5 / Unicode best practices #6

dogweather opened this issue Mar 5, 2014 · 2 comments

Comments

@dogweather
Copy link
Owner

E.g.,

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

But that meta tag really has to be the very first thing in the section because as soon as the web browser sees this tag it's going to stop parsing the page and start over after reinterpreting the whole page using the encoding you specified.

See http://www.joelonsoftware.com/articles/Unicode.html

@dogweather
Copy link
Owner Author

What's good list of true best practices?

@dogweather
Copy link
Owner Author

Here's a great article: http://diveintohtml5.info/semantics.html. There are even security vulnerabilities if you don't do this.

Apparently, in HTML5 you can now do this: <meta charset="utf-8" />

@dogweather dogweather changed the title matcher: HTML5 / Unicode best practices Matcher: HTML5 / Unicode best practices Mar 26, 2014
@dogweather dogweather reopened this Jan 28, 2016
@dogweather dogweather changed the title Matcher: HTML5 / Unicode best practices HTML5 / Unicode best practices Jan 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant