29Sep/100

ISO-8859 compliant text

If you've ever created an email template and pasted text from Microsoft Word then chances are that you've experienced those weird letters which come up such as "–".

The reason this happens is because these characters are not part of the ISO 8859-1 character set, which are assigned values from 0 to 255. So the solution is to convert these numbers into a numbered entity range from 128 to 255.

Converting the ISO-8859-1 Characters to HTML Numbered Entities
This first option is to manually replace these characters as per the below reference table:

Character Entity Number Entity Name Description
" " " quotation mark
' ' ' (does not work in IE) apostrophe 
& & & ampersand
< &#60; &lt; less-than
> &#62; &gt; greater-than

* Full list available at http://www.w3schools.com/tags/ref_entities.asp

The second option is to use a simple free program I've built for you to use, all you have to do is go to the below link and paste in your dirty code and it will output some nice clean ISO-8859 compliant text for you.

Clean up my code >>