When you have sites in multiple languages you may notice, depending on your server configuration, that particular languages may not be displayed properly in browsers. Quando você tem sites em vários idiomas você pode perceber, dependendo de seu servidor configuração, nomeadamente línguas que podem não ser exibidos corretamente em navegadores. And yet when you save the file and view it they display fine. E, no entanto, quando você salvar o arquivo e visualizá-lo eles exibem multa. Here’s what happens and how you can fix it. Veja o que acontece e como você pode solucioná-lo.

This is a particularly perplexing problem and may affect some users of Este é um problema particularmente perplexidade e pode afectar alguns usuários de Angsuman’s Translator Plugin Pro Angsuman Pro Plugin de Tradutor , a professional plugin to transform your blog automatically to 13 (in version 4.0; in testing) other languages. , Um plugin profissional para transformar o seu blog automaticamente para 13 (na versão 4,0; em fase de teste) outras línguas. However it is in no way caused by or unique to the plugin. No entanto, não é de forma alguma causada por ou exclusivos para o plugin. You will see the problem in any multi-lingual site(s) or sites where the server isn’t configured to properly handle the language. Você vai ver o problema em qualquer multi-lingual (s) local ou locais em que o servidor não está configurado para lidar correctamente com o idioma.

Fortunately there is a simple solution. Felizmente há uma solução simples.

The problem is caused when a default charset is specified in the web server configuration, which doesn’t match the language of the file. O problema é causado quando um padrão charset é especificado na configuração do servidor web, o que não corresponde à língua do arquivo. A simple solution to this problem is to remove / comment out the default charset. Uma solução simples para esse problema é remover / comentar as default charset. If you are using Apache HTTP server then open conf/httpd.conf (most likely in /etc/httpd/conf/httpd.conf) and search for AddDefaultCharset . Se você estiver usando o servidor HTTP Apache, em seguida, abra conf / httpd.conf (mais provável em / etc / httpd / conf / httpd.conf) e de busca de AddDefaultCharset. Make sure that the line is commented as follows: Certifique-se que a linha é comentada como segue:
#AddDefaultCharset UTF-8 # AddDefaultCharset UTF-8

Apache documentation also recommends it, albeit in a roundabout way: Apache documentação recomenda também que, embora de uma forma:

AddDefaultCharset should only be used when all of the text resources to which it applies are known to be in that character encoding and it is too inconvenient to label their charset individually. AddDefaultCharset só deve ser utilizado quando o texto de todos os recursos a que se aplica são conhecidas por serem, em que a codificação de caracteres e que seja demasiado incómoda para rotular os seus charset individualmente. One such example is to add the charset parameter to resources containing generated content, such as legacy CGI scripts, that might be vulnerable to cross-site scripting attacks due to user-provided data being included in the output. Um exemplo desta situação é a de adicionar o parâmetro charset aos recursos gerados contendo conteúdos, tais como legado scripts CGI, que poderia ser vulnerável a ataques cross-site scripting devido a dados fornecidos pelo usuário, sendo incluído na produção. Note, however, that a better solution is to just fix (or delete) those scripts, since setting a default charset does not protect users that have enabled the “auto-detect character encoding” feature on their browser. Observe, porém, que a melhor solução é apenas para corrigir (ou excluir) os scripts, uma vez que a fixação de uma omissão charset não protege os usuários que têm permitido que as "auto-detectar codificação de caracteres" recurso em seu navegador.

Update: For WordPress blogs you have to unset the charset in options. Atualização: Para WordPress blogs que você tem que desactivado o charset em opções.