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

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

Related

Korean is not recognized in HTML page

When I type Korean in my html code and open it through my browser, Korean is not recognized by the browser and prints some weird words. What shall I do?
There must be few mistakes you are making.
First, You should have a doctype specified on your HTML page. Use HTML5 doctype
<!DOCTYPE html>
Second, you should specify the character encoding of the document as well. So, add:
<meta charset="utf-8" />
In your head section. Or for a longer version with better cross browser compatibility use:
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
Also as Juhana said, your file must be saved with same encoding (i.e. Unicode UTF-8) to be able to store Unicode characters and display them.

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.

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

Charset UTF-8 doesn't work (stuck with these ?-marks)

I have a Unicode problem... I´ve done this before but for now, I cannot understand
why the Icelandic letters don´t show up - I have those question marks again
Here is the url (very plain and short html5)
http://nicejob.is/new/
Everything I Google says: use the <meta charset="utf-8"> as I do.
Any suggestions?
Your page is already viewed as UTF-8. But your source code is not saved as UTF-8.
Please change the encoding of your source code file to UTF-8.
Not all browsers support HTML5-way tags yet
here you can see table of compability
Try this instead:
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
I can see a couple of issues.
The META should look like this:
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
The <html> specified lang="en" which might be prone to confusing some browsers.
When I view the HTML from the browser, the question marks are encoded as 0xEF 0xBF 0xBD, which is the UTF-8 encoding for the byte order mark or BOM, aka U+FEFF. So, for whatever reason, the HTML is not transmitted as sensible UTF-8 (though it does seem to be valid UTF-8).
Probably you are using some text editor like notepad++,
and you didn't set up encoding to UTF-8 in that text editor.
What you have to do is to save the file with utf-8 encoding by using Notepad (the attached one with Windows).
Steps:
Save as ..
In the below options ... you will find encoding option choose UTF-8 ...
And save the file ...
Then add the line <meta charset="UTF-8" /> inside your file ...
And it will work.

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