View Single Post
  #2 (permalink)  
Old December 11th, 2011, 02:27 PM
bitnap bitnap is offline
Authorized User
Points: 105, Level: 2
Points: 105, Level: 2 Points: 105, Level: 2 Points: 105, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2010
Posts: 19
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Yes they should be the same. Since your Dreamweaver is set to UTF-8, I would continue to use UTF-8 for the meta tag, and if you do include an XML Declaration it should have the same (but fewer people seem to be using the XML Declaration these days on web pages).

I'm not an expert on this, but to try and explain a bit more:

First, you need to consider the characters that you want to use on your page. iso-8859-1 is OK for Western Europan languages such as English, French and German, but if you want to deal with Japanese, Chinese, Thai, Hindi or many others the characters are not included in iso-8859-1 and you should use UTF-8.

Second, you need to know how your program is saving the code. The actual html file for the page must be saved as UTF-8 / iso-8859-1 (there is no point writing one of these in the source code if the file is not saved in that same format). In Dreamweaver, I think you go to the preferences menu, and select the New Document options from the left then you will see an option that says "Default encoding" and you probably have UTF-8 selected there. This is fine because it should save it in that format.

So what happens is that, if a file is saved in iso-8859-1 (also often known as Latin-1), but contains characters from other characters not supported in it, then they will not show up correctly (that is when you might see that diamond shape with a question mark in it).
Reply With Quote