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, -- ------------------------------------------------------------ Erick Perez Panama Sistemas Integradores de Telefonia IP y Soluciones Para Centros de Datos Panama, Republica de Panama Cel Panama. +(507) 6694-4780 ------------------------------------------------------------
Leonardo Vilela Pinheiro
2006-Aug-23 21:28 UTC
[CentOS] Changing the charset in Centos 4.3
On 8/23/06, Erick Perez <eaperezh at 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. -- Vilela -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20060823/baf6f061/attachment-0002.html>
-----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-----