Hi, My Centos 4.3 Server was installed with the english language only. The server hosts several files in spanish and the PHP code that themes the webpages uses the charset "iso-8859-1".
If I do an "export" in my system it shows: LANG="en_US.UTF-8"
Does apache or the operating system needs to have the charset changed? Where?
Thanks,
On 8/23/06, Erick Perez eaperezh@gmail.com wrote:
If I do an "export" in my system it shows: LANG="en_US.UTF-8"
This variable is set in /etc/sysconfig/i18n and it changes the way the console behaves (Spanish characters or not, etc). It has nothing to do with Apache, as far as I know. Your HTML files should have their own Meta Charset field set in order to explicit tell it to the client browsers.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, Aug 23, 2006 at 03:50:18PM -0500, Erick Perez wrote:
Hi, My Centos 4.3 Server was installed with the english language only. The server hosts several files in spanish and the PHP code that themes the webpages uses the charset "iso-8859-1".
If I do an "export" in my system it shows: LANG="en_US.UTF-8"
Does apache or the operating system needs to have the charset changed? Where?
You can change AddDefaultCharset on httpd.conf from:
AddDefaultCharset UTF-8
to
AddDefaultCharset ISO-8859-1
Or you can do that inside specific virtual hosts.
- -- Rodrigo Barbosa "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)
That worked perfectly. That was the problem!!!
Thanks rodrigo.
On 8/23/06, Rodrigo Barbosa rodrigob@darkover.org wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, Aug 23, 2006 at 03:50:18PM -0500, Erick Perez wrote:
Hi, My Centos 4.3 Server was installed with the english language only. The server hosts several files in spanish and the PHP code that themes the webpages uses the charset "iso-8859-1".
If I do an "export" in my system it shows: LANG="en_US.UTF-8"
Does apache or the operating system needs to have the charset changed? Where?
You can change AddDefaultCharset on httpd.conf from:
AddDefaultCharset UTF-8
to
AddDefaultCharset ISO-8859-1
Or you can do that inside specific virtual hosts.
Rodrigo Barbosa "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFE7NUFpdyWzQ5b5ckRAh+xAJ4hFbxCWWMhbG/e+1soh5JFmvxYEwCeKM+d 5BgKWUnJJHvFsHlQy5DzELU= =weGc -----END PGP SIGNATURE----- _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos