Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: phranque
The file is using UTF-8 encoding, the meta tag sets the character set to UTF-8 too...but when I upload it to my client's server characters with umlauts (for example ü) don't display properly.
The document is XHTML 1.0 strict.
If I change the file encoding to ISO-8859-1 and the meta tag it works fine...why? On my local server it works either way...
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="no" lang="no">
<title>An XHTML 1.0 Strict standard template</title>
<meta http-equiv="Content-Style-Type" content="text/css" />
<p>Flygande bäckasiner söka strax hwila på mjuka tuvor.</p>
That file is saved as UTF-8, and the accented characters are not displaying properly.
Is it possible that the server is forcing everything to display as ISO-8859-1?
You could try installing the FireFox extension Live HTTP Headers, and see what it says. For this site, I notice
And your characters are rendering fine here, so it appears this could be the case.
I hope this helps someone in the future. I should also point out that you should have the charset specified in each of your files if you are going to use AddDefaultCharset OFF. If you do not have a charset specified in each file you can use UTF-8 (or any other charset) instead of OFF.