Named Entities Like © are Replaced

Symptom: When you have an HTML page containing a named entity like © or é and you edit it using Normal View, the entity is changed into the actual character, for example, © or é.

Explanation: This is intentional.

Named entities like © were invented so that web pages could be authored using only ASCII characters and still contain special characters which are not a part of the 32-127 ASCII character set. Not every web browser supports every named entity and named entities which look correct in one browser may not appear at all in another browser or may be displayed incorrectly. Therefore, CityDesk converts these to the appropriate Unicode character which works more reliably in more web browsers.

As of CityDesk 2.0, all articles are stored internally using the full Unicode character set which is able to represent all these special characters without resorting to named entities. When the article is written out to disk, it is encoded using the UTF-8 encoding, which also includes ways of encoding characters like ©. All web browsers understand UTF-8 and will display the characters correctly as long as the proper header is present in the <HEAD> section of each HTML page:

<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

This should be a part of all your templates.

Workarounds: As in all cases where it's important to preserve HTML exactly the way you wrote it, you should avoid editing those articles in Normal View. If this is not an option, you can use CityDesk variables, for example, create a variable named copy defined as &copy; and then include that in your articles using {$.copy$}.

CityDesk Home

Fog Creek Home

Email Us