I have a problem with browser charset recognition when using PHP 4.1.2
(this is the PHP version which our hosting company provides).
For charset recognition, I use the following meta-tag:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Here is what I have tried so far:
- Regular html page: charset is properly recognised
- PHP page which just prints out the html: charset is not properly
recognised (ISO charset is chosen instead)
- ini_set("defaul t_charset", "utf-8"): php_info() indicates that the
default charset has been set to utf-8, but still the regular ISO charset
is being used when the page is being displayed.
- Parsing the PHP page on my local PHP server (which is running 4.2.3):
Charset is properly recognised
The strange thing however is that it did work properly initially, but
about a month ago the problems with charset recognition started. The
PHP version of the provider has stayed the same, but maybe they have
changed some php settings (this is not very likely however).
Anyone has some advice for me?
Thanks in advance,
cj.
(this is the PHP version which our hosting company provides).
For charset recognition, I use the following meta-tag:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Here is what I have tried so far:
- Regular html page: charset is properly recognised
- PHP page which just prints out the html: charset is not properly
recognised (ISO charset is chosen instead)
- ini_set("defaul t_charset", "utf-8"): php_info() indicates that the
default charset has been set to utf-8, but still the regular ISO charset
is being used when the page is being displayed.
- Parsing the PHP page on my local PHP server (which is running 4.2.3):
Charset is properly recognised
The strange thing however is that it did work properly initially, but
about a month ago the problems with charset recognition started. The
PHP version of the provider has stayed the same, but maybe they have
changed some php settings (this is not very likely however).
Anyone has some advice for me?
Thanks in advance,
cj.
Comment