Character encoding

How to declare character encoding in HTML, XHTML, XML

Look at the matrix on: http://www.w3.org/International/tutorials/tutorial-char-enc/#Slide0250

"we can draw up a matrix as follows to represent various possible scenarios for which we will need to consider possible alternatives when it comes to declaring the character encoding."