View Single Post
 
Old December 9th, 2011, 03:11 PM
justinneng
Guest
 
Posts: n/a
Post character encoding

Hello all,
I am using dreamweaver cs5. when i start a new xhtml 1.0 strict page, among the default text that appears in the page there is this line,

Code:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Now based on the book, i typed the xml declaration as follows right in the beginning of the page

Code:
<?xml version="1.0" encoding="iso-8859-1"?>
in the first code the charset is utf-8 while in the xml declaration the the encoding is iso-8859-1. are these two different values supposed to be the same? I am asking this because in the book on page 58 and 59, in the try it out section there is an example where the encoding is iso-8859-1. so is the charset in the <meta http-equiv.... line (page 59).