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 avete siti in più lingue è possibile notare, a seconda della configurazione del server, particolare che le lingue non possono essere visualizzati correttamente nel browser. And yet when you save the file and view it they display fine. E ancora quando si salva il file e visualizzarlo essi visualizzazione ammenda. Here’s what happens and how you can fix it. Ecco che cosa succede e come si può rimediare.

This is a particularly perplexing problem and may affect some users of Si tratta di un problema particolarmente perplessi e può influenzare alcuni utenti di Angsuman’s Translator Plugin Pro Angsuman del traduttore del plugin per , a professional plugin to transform your blog automatically to 13 (in version 4.0; in testing) other languages. , Un plug professionali per trasformare il tuo blog automaticamente a 13 (in versione 4,0; in fase di test) altre lingue. However it is in no way caused by or unique to the plugin. Tuttavia essa non è in alcun modo causati da o unica per il 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. Vedrete il problema in qualsiasi multilingue sito (s) o siti in cui il server non è configurato per gestire correttamente la lingua.

Fortunately there is a simple solution. Fortunatamente non vi è una soluzione semplice.

The problem is caused when a default charset is specified in the web server configuration, which doesn’t match the language of the file. Il problema è causato quando un charset di default è specificato nella configurazione del server Web, che non corrisponde alla lingua del file. A simple solution to this problem is to remove / comment out the default charset. Una semplice soluzione a questo problema è quello di eliminare / commentare i charset di default. 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 si utilizza il server HTTP Apache quindi aprire conf / httpd.conf (molto probabilmente in / etc / httpd / conf / httpd.conf) e cercare AddDefaultCharset. Make sure that the line is commented as follows: Assicurarsi che la linea è commentato come segue:
#AddDefaultCharset UTF-8 # AddDefaultCharset UTF-8

Apache documentation also recommends it, albeit in a roundabout way: Apache raccomanda inoltre di documentazione, sia pure in una rotatoria modo:

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 deve essere utilizzato solo quando tutte le risorse di testo a cui si applica sono note per essere in quella codifica dei caratteri e che sia troppo scomodo per etichettare i propri 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. Un esempio è quello di aggiungere il parametro charset alle risorse contenenti contenuti generati, come eredità script CGI, che potrebbe essere vulnerabile a attacchi cross-site scripting a causa di utente fornito dati incluso nella produzione. 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. Nota, tuttavia, che una soluzione migliore è quella di fissare solo (o cancellare) questi script, dato che la fissazione di un charset di default non protegge gli utenti che hanno attivato il "rilevare automaticamente la codifica dei caratteri" funzione del loro browser.

Update: For WordPress blogs you have to unset the charset in options. Aggiornamento: per i blogs di WordPress dovete disinserito il set di caratteri in opzioni.