WordPress Charset Encoding Problem After Upgrading to Version 2.2 WordPress charset codifica problema dopo l'aggiornamento alla versione 2,2
WordPress blogs that upgraded to Wordpress version 2.2 may encounter strange character set (charset) encoding problem where several characters especially apostrophes (’), quotation marks (”), and hyphens or dashes (—) are displayed as strange characters such as ’ or simply as question marks (?) when the posts are output to web pages. WordPress blog che Wordpress aggiornato alla versione 2.2 possono incontrare strano set di caratteri (charset) dove problema di codifica caratteri diversi soprattutto apostrofi ( '), le virgolette ( "), e trattini o trattini (-) vengono visualizzati come caratteri strani come ad esempio â € ™ o semplicemente come punti interrogativi (?) quando i posti sono uscita a pagine web. As you have probably suspected, the issue is caused by character encoding method used by Come avete probabilmente sospetti, il problema è causato dal metodo di codifica usato da WordPress 2.2 which supports setting of database collation and character set WordPress 2,2 che sostiene l'impostazione della banca dati raccolta e set di caratteri in WordPress config file. nel file di configurazione di WordPress.
The error happens because up to and including WordPress ver 2.1.3, almost all WordPress databases were created using the latin1 character set and the latin1_swedish_ci collation. L'errore si verifica perché fino a quello di WordPress ver 2.1.3, quasi tutte le banche dati di WordPress sono stati creati utilizzando il set di caratteri latin1 e la raccolta latin1_swedish_ci. Beginning WordPress v2.2, WordPress allows the user to define both the database character set and the collation in wp-config.php file, using DB_CHARSET and DB_COLLATE values. Inizio WordPress v2.2, WordPress permette all'utente di definire sia il database set di caratteri e la raccolta in wp-config.php file, utilizzando DB_CHARSET e DB_COLLATE valori. With these values set to another encoding, WordPress assumes that the databases are indeed using the charset and collation too, where it’s not the case for existing WordPress installation. Con questi valori fissati ad un altro di codifica, WordPress presuppone che le basi di dati sono effettivamente utilizzando il set di caratteri e collazione troppo, se non è il caso per l'installazione di WordPress esistenti. So if you’re upgrading WordPress to 2.2 using the default wp-config.php, or have manually modified the file to include the new variables, or upgrading by using Fantastico which automatically update the wp-config.php file to include these two definitions which values set as Unicode UTF-8 by default, you will need to remove these definitions to solve the character encoding error. Quindi, se si esegue l'aggiornamento a WordPress 2,2 utilizzando l'impostazione predefinita wp-config.php, o hanno modificato manualmente il file per includere le nuove variabili, o di ristrutturazione di utilizzare Fantastico che aggiorna automaticamente il wp-config.php file di includere queste due definizioni che valori fissati come Unicode UTF-8 per impostazione predefinita, sarà necessario rimuovere queste definizioni di risolvere la codifica dei caratteri di errore.
Open and edit your WordPress wp-config.php file. Aprire e modificare il tuo WordPress wp-config.php file. Then locate the following two lines: Quindi individuare le seguenti due righe:
define(’DB_CHARSET’, ‘utf8′); define ( 'DB_CHARSET', 'utf8');
define(’DB_COLLATE’, ”); define ( 'DB_COLLATE', ");
You can simply delete these 2 lines away, or just remove the utf8 from the first line to make them looks like this: Si può semplicemente cancellare questi 2 linee di distanza, o semplicemente rimuovere il utf8 dalla prima linea per renderli come questo:
define(’DB_CHARSET’, ”); define ( 'DB_CHARSET', ");
define(’DB_COLLATE’, ”); define ( 'DB_COLLATE', ");
With no charset and collation values set, WordPress will fall back to the old default, latin1 which matched the databases. Senza charset e collazione valori fissati, WordPress saranno ridotti a la vecchia impostazione predefinita, latin1, che ha trovato le basi di dati.
A possible better solution is Una possibile soluzione migliore è convert the Wordpress database to UTF8 Unicode Wordpress convertire il database per UTF8 Unicode .
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Questa è una pagina tradotta macchina che è fornito "così com'è" senza alcuna garanzia. Machine translation may be difficult to understand. Traduzione automatica può essere difficile da capire. Please refer to Si prega di fare riferimento a original English article articolo originale in lingua inglese whenever possible. quando possibile.
Share and contribute or get technical support and help at Condividere e contribuire o ottenere supporto tecnico e assistenza in My Digital Life Forums La mia vita digitale Forum .
Related Articles Articoli correlati
- How to Convert Character Set and Collation of WordPress Database Come convertire i set di caratteri e la raccolta di database di WordPress
- Download Previous or Old Version of WordPress Download precedente o vecchia versione di WordPress
- How to Customize, Modify or Change WordPress Database Connection Error Page Come personalizzare, modificare o cambiare connessione al database di WordPress pagina di errore
- Download WordPress 2.3 Release Candidate 1 (RC1) with Tags Support Download WordPress 2,3 Release Candidate 1 (RC1) con supporto Tag
- Integrate WordPress including Comments with bbPress Forum using bbSync Integrare WordPress compresi Commenti con bbPress Forum utilizzando bbSync
- WordPress 2.1.1 Critical Security Alert - Download Upgrade to 2.1.2 WordPress 2.1.1 Critica Security Alert - Download aggiornamento a 2.1.2
- Automatically Update WordPress to Latest Version with Automatic Upgrade Plugin (WPAU) WordPress aggiornare automaticamente alla versione più recente con l'aggiornamento automatico Plugin (WPAU)
- Disable Auto Go To (Jump) To Read More Tag Disabilitata l'auto per andare (vai) per saperne di più tag
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working Paginating o Split WordPress Post o con Nextpage in WordPress non funzionante
- Disable and Turn Off Post Revisions Tracking in WordPress 2.6 or Above Disattivare e disattivare Post Revisioni di monitoraggio in WordPress 2,6 o superiore









August 24th, 2008 11:20 24 agosto 2008 11:20
Thanks! Grazie! Saved me a lot of time. Mi ha salvato un sacco di tempo.
August 23rd, 2008 05:24 23 agosto 2008 05:24
thanks grazie
June 18th, 2008 08:42 Giugno 18, 2008 08:42
Isn’t UTF8 much better? UTF8 non è molto meglio? Why would you limit yourself to Latin1 just because it used to be the default? Che cosa limitarsi a Latin1 solo perché era l'impostazione predefinita?
June 6th, 2008 20:56 6 giugno 2008 20:56
Just wanted to say: this had afflicted me for months. Volevo solo dire: questo mi ha afflitto per mesi. Never found a workable solution. Mai trovato una soluzione. Stumbled on your site today and it worked perfectly. Incappati nel tuo sito e oggi ha funzionato perfettamente. Thanks so much! Grazie così tanto!
February 19th, 2008 05:04 19 febbraio 2008 05:04
Hi, thanks for doing this. Ciao, grazie per fare questo. it’s the only thing I’ve found. è l'unica cosa che ho trovato. I remove the utf8 and a lot of my posts still have the question marks. Rimuovere la utf8 e un sacco di miei post ancora la questione marchi. any ideas what I may need to do? tutte le idee ciò che può essere necessario fare?
February 17th, 2008 03:44 17 febbraio 2008 03:44
thanks for the help, it worked out for me grazie per l'aiuto, ha funzionato per me
January 5th, 2008 06:55 5 gennaio 2008 06:55
Thx a lot! Thx a lot!
You saved me hours! Mi hai salvato ore!