0

I have some HTML which renders like this:

"Les Misérables" Bilingual Edition: French and English Paragraph by Paragraph (Kindle only)"

...which makes it look like some kind of haywire "Les Misacrables"

This is the HTML:

<p><cite>"Les Misérables"</cite> Bilingual Edition: French and English Paragraph by Paragraph (Kindle only)</p>

What can I do to get the é to appear decently?

B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862

3 Answers3

3

Check your Encoding.

Like:

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

If the content of your page comes from a Database you want to check your Database Encoding as well. It could also be the Text Editor that you use to create the pages that saves the file with a particular Encoding.

Check all of them depending on your situation.

MadeInDreams
  • 1,991
  • 5
  • 33
  • 64
2

You need the utf-8 meta in your <head></head>

    <!doctype html>
    <html>
        <head>
        <meta charset="utf-8" />
        </head>
    <body>
Les Misérables
    </body>
    </html>

And remember to save your file with UTF-8 encoding.

darma
  • 4,687
  • 1
  • 24
  • 25
0

What you want to do is use the HTML code of the character rather than the character itself. In this case it would be the HTML code: &eacute; The result is: é

For other characters, you can look up their HTML code counterparts here: http://www.ascii.cl/htmlcodes.htm

Ryan Seys
  • 264
  • 1
  • 9