I am using © for the copyright sign. What all do I need to replace on my web page with the ASCII character codes? I also have ‘,” on my page, do I need to substitute these also with the ASCII character codes?
Do I need to use the following when using ASCII character codes? When would I use it else:
<meta http-equiv="content-type" content="text/html;charset=utf-8">
UPDATE:
I am using the YUI API and they suggest that I use the strict doc type:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
How would this change now and what all do I need to represent the copyright symbol?
You can’t use
©if you’re writing XHTML and you want to be able to process it in a non-external-entity-including XML parser, or in XHTML5 where there is no DTD to define thecopyentity.In this case, you might use
©, or, generally better, just paste the © symbol in directly and make sure you’re saving and serving the file as UTF-8.