[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

AddCharset no apache2.x



Pessoal,

yenho meu servidor todo em UTF-8, mas algumas páginas são ISO-8859-1 e eu 
gostaria que fosse enviada desta forma para o cliente pois assim o navegador 
seleciona a codificação correta automaticamente. Procurando na net eu 
encontrei que podia usar o AddCharset no .htaccess que funcionaria 
recursivamente por todos os arquivos daquele dir., fiz isto, adicionei ao 
.htaccess:

AddCharset ISO-8859-1 .php
AddCharset ISO-8859-1 .html
AddCharset ISO-8859-1 .htm

Reiniciei o apache

Mas continua vindo como UTF-8. Já verifiquei e o apache está configurado para 
usar o .htaccess e no virtual eu coloquei o AllowOverride

Alias /ieducar  /var/www/ieducar
<Directory /var/www/ieducar>
    Order deny,allow
    AllowOverride all
</Directory>

Já tentei colocar também direto no directory assim:

Alias /ieducar  /var/www/ieducar
<Directory /var/www/ieducar>
    AddCharset ISO-8859-1 .php
    AddCharset ISO-8859-1 .html
    AddCharset ISO-8859-1 .htm
    Order deny,allow
    AllowOverride all
</Directory>

Mas também não fez efeito.

Alguma dica?

valeu
Inte
Ronaldo
-- 
All Finagle Laws may be bypassed by learning the simple art of doing
without thinking.
--
> Prof. Ronaldo Reis Júnior
|  .''`. UNIMONTES/DBG/Lab. Ecologia Comportamental e Computacional
| : :'  : Campus Universitário Prof. Darcy Ribeiro, Vila Mauricéia
| `. `'` CP: 126, CEP: 39401-089, Montes Claros - MG - Brasil
|   `- Fone: (38) 3229-8192 | ronaldo.reis@unimontes.br | chrysopa@gmail.com
| http://www.ppgcb.unimontes.br/lecc | ICQ#: 5692561 | LinuxUser#: 205366
--
Favor NÃO ENVIAR arquivos do Word ou Powerpoint
Prefira enviar em PDF, Texto, OpenOffice (ODF), HTML, or RTF.


Reply to: