Peter's Pages Peter's Pages
The text for my website comes from a number of sources. Some of it I enter in text editors, some of it is pasted from other programs like iWeb. As such the text can contain special characters in a variety of text encodings.

The downside of this, unless I took corrective action, would be funny looking characters where a " or ' should appear on a webpage. Only ASCII standard characters are safe to appear on a webpage, anything else you need to use HTML entity codes. Such as £ for £ for example.

The Ruby code which compiles the website source checks that the source files are just ASCII and moans if there's strange characters in there.

A final check is made that the generated HTML only contains ASCII characters.