Reputation: 349
I am trying to create a html page on which I want to display some characters in several places from the French character set:
Lower case : à â æ ç é è ê î ô œ ù û
Upper case : À Â É È
I'm uncertain about how to add the entire charset to my html code. I haven't found any easy to understand resources on the web till now. I'd be grateful for any help.
Upvotes: 0
Views: 169
Reputation: 1031
You are right, but let me point you out on the fact that is always preferable using the HTTP declaration because they are the one with the highest priority. This means that having both the HTTP header and the document to serve the Content-type (either with Pragma or Meta directives) is simply a waste of bytes.
For more info, read here. http://www.w3.org/International/questions/qa-html-encoding-declarations
Upvotes: 1
Reputation: 3072
I'm pretty sure that adding the following to your <head>
will enable the correct display of character sets you're after:
<meta charset='utf-8'>
or
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
For the difference (or lack thereof), refer to this SO question an answer (note: HTML5 doctype):
<meta charset="utf-8"> vs <meta http-equiv="Content-Type">
Example:
<html>
<head>
<!-- Head content -->
<meta charset='utf-8'>
<!-- More head content -->
</head>
<body>
<p>Your content here</p>
</body>
</html>
Upvotes: 1