When you need to encode
Encode text before placing it inside HTML when it might contain < > & or quotes — for example code samples in a blog post, or user-written text. Otherwise the browser may read it as markup.
Named and numeric entities
Named entities like &copy; are easy to read. Numeric entities like &#169; work for any character. The decoder understands both.