You can do this by adding an internal DTD subset to the header of your document instance, like so:
<?xml version="1.0"?>
<!DOCTYPE mydoc [
<!ENTITY ldquo "“">
<!ENTITY rdquo "”">
<!ENTITY nbsp " ">
<!ENTITY copy "©">
]>
That is, you create a doctype at the beginning of your document and add entity definition rules for the characters you use in the document. Your document will again be well-formed and, in the case above, XML-aware browsers should correctly display your Unicode characters.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.