1

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)

Smamatti
  • 3,901
  • 3
  • 32
  • 43
Kiwimoisi
  • 4,086
  • 6
  • 33
  • 64
  • 1
    I think that's a side effect of "cufon", a service which replaces characters with images displaying a custom font. Maybe your font doesn't support french characters?! – cem Nov 28 '12 at 10:22
  • 1
    ^ This. It's pretty obviously a Cufon problem. You should explicitly mention in your question that you're using it. – deceze Nov 28 '12 at 10:26
  • http://stackoverflow.com/questions/3131304/problems-displaying-french-accented-characters-in-utf-8 – rOcKiNg RhO Nov 28 '12 at 10:27

3 Answers3

5

You can manually replace characters by its HTML entities or using a HTML escape tool.

Emil Vikström
  • 90,431
  • 16
  • 141
  • 175
asolovyov
  • 903
  • 1
  • 10
  • 21
1

You can use html character entity for that.

Reference

Dineshkani
  • 2,899
  • 7
  • 31
  • 43
  • See this link for your reference http://stackoverflow.com/questions/3627188/how-to-display-special-characters-correctly-in-the-website-html – Dineshkani Nov 28 '12 at 10:18
0

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>
Damien Overeem
  • 4,487
  • 4
  • 36
  • 55