I’m using the html5 doctype for a mobile website.
I normally use the following:
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
But, I read that http-equiv is deprecated in html5.
I see that the jquery mobile demos/docs are using (strangely it’s not properly formed):
<meta charset="utf-8">
But, I also read on http://www.html-5.com/metatags/index.html (not sure if this is an authority or not) that “The tag should no longer be used because it is supported only for the purpose of migrating from xHTML.”
Update
I search SO for a similar question and didn’t find anything, but a google search turned up the following:
Either will pass the w3c validator, I prefer to use meta charset=”utf-8″ because it’s shorter if nothing else.