Reputation: 4182
I have a problem recently I can't seem to be able to display special french characters like é.
This is my settings of my page :
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen"/>
I tried UTF-8
too and doesn't seem to work either.
I tried also using é and nothing.
Can someone help me ?
See this website (in the ABOUT section)
Upvotes: 1
Views: 9253
Reputation: 963
You can manually replace characters by its HTML entities or using a HTML escape tool.
Upvotes: 5
Reputation: 4529
This should be a valid french html document (According to web standards) . You did the right thing by choosing the iso-8859-1 character encoding, just at the wrong place.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<title>Example de document XHTML 1.0</title>
</head>
<body>
<h1>Portrait Intérieur</h1>
<h2>Rainer-Maria Rilke</h2>
<p>Ce ne sont pas des souvenirs<br />
qui, en moi, t'entretiennent ;<br />
tu n'es pas non plus mienne<br />
par la force d'un beau désir.</p>
</body>
</html>
Upvotes: 0