Welcome to WebmasterWorld Guest from 126.96.36.199
Forum Moderators: incrediBILL
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My Site</title><link rel="stylesheet" type="text/css" href="styles.css">
Browser and HTML validator, both detects windows-1250 encoding instead of utf-8, which is listed in headers. Could anybody help with this, plz?
Windows programs like Notepad can be problematic in this regard as they usually save documents with the default Windows encoding (in your case, windows-1250). In Windows XP Notepad, you can specify UTF-8 but the files are prefixed with a byte order mark that can cause difficulties - best to use a proper UTF-8-capable text editor or wysiwyg program.
Browser and HTML validator, both detects windows-1250 encoding instead of utf-8
Did you test it with browser and HTML validator from your local disk, or after uploading to the Web server? If the latter, is there an encoding set for the HTTP headers?
Additionaly, REMOVE the trailing / from the meta tag (and from <hr>, <br>, <img>, and any other "single" tags), as that trailing / is only required in XHTML documents.
In HTML documents it can cause errors (for example: the first / seen after <head> is interpreted as being the </head> tag).