HTML Encoding for French characters - html

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?

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">

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

Related

UTF-8 Display for HTML

I have some special characters in UTF8 format which I want to display. First I tried to read the origin (JSON) as UTF8 having also any kind of UTF8 meta tags in the header:
<meta charset="utf-8">
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-type" content="application/json; charset=utf-8" />
As this did not work, I transfered the special characters to HTML syntax and tried (with and without the UTF-8 headers) to get it displayed. But somehow I even do not get this. Here is the text I can add in a simple HTML file, which is then not displayed correctly.
It's Possible! � Our Experiences
I also tried this page with the ISO-8859-1 charset, but this does not work as well. I hope someone can help me.
Thanks,
Katja
If � is literally the text you get in your JSON, there's nothing you can do. � is the HTML entity for the UNICODE REPLACEMENT CHARACTER �, i.e. the Unicode character which is inserted when something went wrong.
This points to the original text having been screwed up by the originator. There's no way to know what that character was supposed to be before it screwed up and got replaced by �.

meta char set UTF 8 encoding error

I have used the following code in my head tag.
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Admin Panel</title>
</head>
I have characters of other language which is supported by UTF-8 encoding in my web page. But when i save my html file it showed me error The document's current encoding can not correctly save all of the characters within the document. You may want to change to UTF-8 or an encoding that supports the special characters in this document.
I have already using UTF-8. How to fix this?
You are not using UTF-8. You have just included some markup which tells the browser you are using UTF-8.
That error message sounds like it is coming from your editor. You need to configure your editor to save in UTF-8.

Different rendering of European characters on two pages of same site with same charset

I have a site which is supposed to show French, Spanish characters. There is this strange situation where two pages handle it completely differently.
Both pages share the same header file where I use this meta tag:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
I also set the charset at the global level in IIS > MIME Types:
.asp text/html; charset=iso-8859-1 local
The pages are http://aer2.es/fr/ and http://aer2.es/fr/method
What could be the reason for this inconsistency?
The physical encoding of the other file is in UTF-8, instead of Windows-1252 (ANSI, ISO-8859-1 ... + other mislabelings you see fit)
You can fix it by opening the other file, for example, in notepad, hitting save as, and choosing "ANSI" from the Encoding dropdown menu and then using the new saved file.
Another way to do it is to change the meta tag in the other page to UTF-8:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
however, when saving the change, you need to ensure that you are saving the file in UTF-8 encoding.

latin characters showing in some parts of the page and not others

the page in question is Apple Amor
You can see that in the footer the spanish vowels seem to be showing properly , but in the slide down bar(header) they get messed up.
Any ideas why ?
Your page is encoded in ISO-8859-1. Wherever that header comes from, it is most likely encoded in UTF-8.
You would have to change the character set of your page to UTF-8 (that would probably have some consequences) or convert the incoming data from the header. I don't know where it's coming from, so it's hard to tell what the right method would be.
Mandatory basic reading on the issue: The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)
Your page source shows that you're using:
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
Note that the above tag is not well formed. Where is its closing character "/"? Content-Type should be between double quotes.
Add this tag to your page and test:
<html lang="es">
If that doesn't solve your problem try to change the charset tag to:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

dompdf: how can I remove the additional symbol before the currency?

I'm having some issues in displaying a table with dompdf. In the rendered pdf I have an additional symbol before the currency £:
http://dl.dropbox.com/u/72686/domPdfTable.png
how can I remove this symbol from the final pdf document ?
thanks
There might be a bug in how that character is handled by default. You should be able to address the issue by specifying the correct character set encoding in a meta tag in your document header.
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">