LiamB
LiamB

Reputation: 18596

HTML Encoding for French characters

I have a email template, that has French copy. If I load this email template up in IE I receive square boxes where the accented characters are. How can I combat this? I assume it is down to encoding?

Upvotes: 11

Views: 33008

Answers (2)

bpgergo
bpgergo

Reputation: 16037

Just make sure that the actual encoding of the textfile (I assume it'll be either ISO-8859-1 or UTF-8) is in accordance with the meta tag defining the encoding in the beginning of the file. e.g.:

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

see http://en.wikipedia.org/wiki/Character_encodings_in_HTML

Upvotes: 6

Oded
Oded

Reputation: 499132

Ensure the HTML template has the correct meta tag in the header for Content-Type.

You did not specify if the encoding is Latin1, UTF-8 or other - you need to find out first in order to use the right value.

Here is what a UTF-8 meta tag would look like:

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

Upvotes: 20

Related Questions