0
votes

I the following text (used for testing):

TÄSTåÄ

It's showing on the page as:

T�ST��

I have utf-8 as my content-type:

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

I'm using font-family:

"lucida grande",tahoma,verdana,arial,sans-serif

Any idea why thse characters won't show up properly?

Thank you!

2
What happens if you copy and paste the text with the boxes from the browser into an application that you know can display the test text correctly, like the editor you used to prepare it? (You could use Word, but use the paste option for text only.) If the original text shows up then you have a font problem. Otherwise you have an encoding problem somewhere before the text gets to the browser. - gatkin

2 Answers

0
votes

You need to be sure that the file is being saved as a UTF-8 encoded file and not as plain text.

0
votes

Pls make sure you saved file in 'UTF-8' or 'utf-8 without BOM'. If you used UTF-8 only for encoding your html page, please check the DOCTYPE is valid.