How to Convert Character Set and Collation of WordPress Database Come convertire i set di caratteri e la raccolta di database di WordPress
Since Da WordPress 2.2 WordPress 2,2 , WordPress supports feature that allows the user to define both the , WordPress supporta funzionalità che permette all'utente di definire sia il WordPress database character set and collation WordPress database di set di caratteri e collazione with DB_CHARSET and DB_COLLATE values in wp-config.php file. con DB_CHARSET e DB_COLLATE valori in wp-config.php file. With these values defined, WordPress will use the designated database characterset (charset) and database collation (ie sort order of the letters, numbers, and symbols of a character set) when connecting a database tables. Con questi valori definiti, WordPress utilizzerà la banca dati designato characterset (charset) e database di raccolta (vale a dire di ordinamento delle lettere, numeri e simboli di un set di caratteri) quando si collega una delle tabelle di database.
However, in existing WordPress installations that are upgraded from earlier version of WordPress or not explicitly set a Unicode UTF-8 charset collation, the default database character set is normally set up as Latin1 (default on almost all MySQL installation) with latin1_swedish_ci collation. Tuttavia, in WordPress impianti esistenti che vengono aggiornati dalla versione precedente di WordPress o non esplicitamente stabilito un Unicode UTF-8 charset raccolta, il database di default set di caratteri è normalmente costituito come Latin1 (di default su quasi tutti i MySQL installazione) con latin1_swedish_ci raccolta. If you run a bilingual or multilingual blog with WordPress, you may face problem on character encoding when your blog posts are written in other foreign languages, or when you export and backup the database and later attempt to re-import the database dump in the event of database failure or server migration and moving. Se si esegue un bilingue o multilingue blog con WordPress, che potrebbero incontrare sul problema di codifica dei caratteri quando il tuo post del blog sono scritti in altre lingue straniere, o quando si esporta e il backup del database e poi tentativo di reimportare il database dump in caso banca dati di fallimento o il server di migrazione e in movimento. The symptom is obvious, your WordPress posts or pages will contains garbled, weird and funny characters, sometime just lots of ????? È il sintomo evidente, il tuo post o WordPress pagine contiene caratteri incomprensibili, strani e divertenti personaggi, a volte solo un sacco di ????? (question marks), rendering the WordPress database with your hard work useless and output unreadable. (domande), rendendo la banca dati di WordPress con il vostro duro lavoro inutile e output illeggibile. (May cause also by (Può provocare anche di wrong charset collation charset sbagliato collazione )
The best solution to the character encoding problem in WordPress is to convert the charset or database and collation to UTF-8 or Unicode. La migliore soluzione per la codifica dei caratteri in WordPress problema è quello di convertire il set di caratteri o in una banca dati e raccolta a UTF-8 o Unicode. However, you CANNOT simply connect to MySQL via shell or phpMyAdmin and hoping all your scripts will convert nicely. Tuttavia, non è possibile semplicemente connettersi a MySQL tramite shell o phpMyAdmin e di speranza tutti i vostri script di convertire bene. As explain by Di spiegare come WordPress database conversion guide WordPress banca dati di conversione guida , convert character sets requires using the the MySQL ALTER TABLE command. , Convertire i set di caratteri richiede utilizzando il MySQL ALTER TABLE. When converting the character sets, all TEXT (and similar) fields are converted to UTF-8, but that conversion will BREAK existing TEXT because the conversion expects the data to be in latin1, but WordPress may have stored unicode characters in a latin1 database, and as a result, data could end up as garbage after a conversion! Quando la conversione del set di caratteri, tutto il testo (e simili) campi vengono convertiti in UTF-8, ma che la rottura di conversione testo esistente, perché la conversione dei dati si aspetta di essere in latin1, ma di WordPress possono avere caratteri Unicode memorizzati in un database latin1, e, di conseguenza, i dati potrebbero finire come spazzatura dopo una conversione!
The guide provides a very rough and vague guide as a solution on how to actually convert WordPress MySQL database tables from one character set to another, usually UTF-8. La guida fornisce una molto grezzi e vaga guida come una soluzione su come effettivamente convertire WordPress database MySQL tabelle da un set di caratteri a un altro, di solito codifica UTF-8. However, the guide actually works, although the process can be lengthy. Tuttavia, la guida effettivamente funziona, anche se il processo può essere lunga. To convert, the steps involved generally are to alter each and every TEXT and related fields inside every WP tables to BLOB, then alter the character set of database and finally change the BLOB fields back to TEXT. Per convertire, i passaggi sono coinvolti in generale a modificare di ogni testo e settori connessi all'interno di ogni WP tabelle di BLOB, quindi modificare il set di caratteri della banca dati e, infine, cambiare il BLOB torna al testo. Looks easy, but how long it would take to convert so many fields on so many tables? Sembra facile, ma quanto tempo ci vorrebbe per convertire tanti campi su tanti tavoli? Furthermore, you will also need to remember the original type and length or values of all fields. Inoltre, si dovrà anche ricordare l'originale tipo e lunghezza o valori di tutti i campi.
andersapt has posted a conversion script named ha pubblicato una conversione script chiamato convert_to_utf8_sql_generator.txt which automatically generates a list of SQL statements and commands need to fully convert your WordPress database to UTF8 based on the guide. che genera automaticamente una lista di istruzioni SQL e comandi pienamente necessità di convertire il vostro database per WordPress UTF8 basato sulla guida. However, there seems to be a minor bug with the script, although the author claimed it worked, where in my case, it simply won’t generate the list of SQL commands to run due to the error “PHP Fatal error: Call to a member function get_results() on a non-object in convert.php on line 37″. Tuttavia, ci sembra essere un piccolo bug con lo script, anche se l'autore ha sostenuto ha funzionato, se nel mio caso, è semplicemente non generare l'elenco dei comandi SQL per eseguire a causa l'errore "di PHP Fatal error: Call a un funzione membro get_results () in modo non-oggetto in convert.php on line 37 ". Once fixed, with this script in hand we can easily and quickly convert the database, tables and fields to use utf8_general_ci collation. Una volta fissato, con questo script in mano si può facilmente e velocemente convertire la base di dati, tabelle e campi di utilizzare utf8_general_ci raccolta.
Note: I have tried out Nota: Ho provato UTF-8 Database Converter plugin UTF-8 Database Convertitore di plug in , but it’sa failure. , Ma è un fallimento. It seemed like the author change to character set directly. Ci è sembrata l'autore a cambiare set di caratteri direttamente.
Guide to Convert WordPress Database Character Set to UTF8 (Unicode) Converti guida di WordPress Database Set di caratteri a utf8 (Unicode)
- Take the WordPress blog offline by placing a out-of-service or maintenance notice. Prendere il blog di WordPress offline mettendo un out-of-service o manutenzione preavviso.
- Backup database - this is very important, nothing is guaranteed to work. Backup del database - questo è molto importante, nulla è garantito al lavoro. If you’re using cPanel or other control panel, it’s best to perform a database backup from the control panel itself, where you can restore the database in one piece instead of by SQL statements, in the case of normal dump. Se si sta utilizzando o altri cPanel pannello di controllo, è meglio eseguire un backup del database dal pannello di controllo stesso, in cui è possibile ripristinare il database in un unico pezzo, invece di dichiarazioni di SQL, in caso di normale discarica.
- Download the fixed Scaricare il fisso convert_to_utf8_sql_generator.txt script and save it with a PHP extension. script e salvarlo con un estensione di PHP.
- Modify the script to input the database name your WordPress blog is using. Modificare lo script per inserire il nome del database il tuo blog di WordPress sta usando. Locate the following text: Individuare la seguente testo:
Tables_in_ DATABASENAME Tables_in_ DATABASENAME
The DATABASENAME in red is the only thing that you need to change to match your WordPress database name. La DATABASENAME in rosso è l'unica cosa che avete bisogno di cambiare per abbinare il vostro nome del database di WordPress. It should looks like this after change, for instance, Esso dovrebbe appare così dopo il cambiamento, ad esempio,
Tables_in_wp_mydigitallife
- Upload the convert_to_utf8_sql_generator.php (or you can rename to a shorter name such as convert.php) to the base root WordPress installation directory, where wp-config.php is also located. Carica la convert_to_utf8_sql_generator.php (o si può rinominare in un nome più breve, come convert.php) a base di root directory di installazione di WordPress, dove wp-config.php si trova.
- Now, call and browse the script from any web browser. Adesso, chiamare e navigare lo script da qualsiasi browser web. To do this, simply add convert_to_utf8_sql_generator.php (or any name you give to the script) to the end of your blog URL (ie http://www.mywebsite.com/convert_to_utf8_sql_generator.php) and press Enter. Per farlo, è sufficiente aggiungere convert_to_utf8_sql_generator.php (o qualsiasi nome che si dà allo script) e la fine del tuo blog URL (ossia http://www.mywebsite.com/convert_to_utf8_sql_generator.php) e premere Invio. A long list of SQL statements will be generated on the web page. Un lungo elenco di istruzioni SQL viene generato sulla pagina web.
- Ensure that your post_content and post title fields on wp_posts table DOES NOT belongs to any indexes or FULLTEXT indexes. Garantire che il tuo post e post_content campi titolo a wp_posts tabella non appartiene a nessuna indici FULLTEXT o indici. Else the type of the fields may not be converted to BLOB with one of the errors list below. Altro il tipo di campi non possono essere convertiti in BLOB con uno degli errori elenco qui di seguito. Some plugins, such as related posts tend to add indexes to these fields. Alcuni collegamenti, come ad esempio i posti relativi tendono ad aggiungere indici a questi settori. In this case, temporarily drop the indexes. In questo caso, temporaneamente calo degli indici.
ERROR 1170 (42000): BLOB/TEXT column ‘post_content’ used in key specification without a key length ERRORE 1170 (42000): BLOB / TEXT colonna 'post_content' utilizzato in chiave senza una specifica lunghezza della chiave
ERROR 1283 (HY000): Column ‘post_content’ cannot be part of FULLTEXT index ERRORE 1283 (HY000): La colonna 'post_content' non può essere parte di indice FULLTEXT
- Login to your server shell by Telnet or SSH. Login al server di shell di Telnet o SSH. You can skip this part of using Unix shell if you intend to use phpMyAdmin to do the dirty work, but I have not tried it. Si può saltare questa parte della shell Unix utilizzando, se si intende utilizzare phpMyAdmin per fare il lavoro sporco, ma non ho provato. So if you do, do feedback on whether it can be done. Quindi, se lo si fa, fare commenti sulla questione se ciò può essere fatto.
- Connect to MySQL server from the shell. Connettersi al server MySQL dalla shell.
- Issue the following command first in MySQL prompt: Il seguente comando prima in MySQL prompt dei comandi:
use DATABASENAME ; DATABASENAME uso;
Again, replace DATABASENAME in red to the actual WordPress database name. Anche in questo caso, sostituire DATABASENAME in rosso per l'effettivo nome del database di WordPress.
- Then copy and paste the whole list of SQL statements auto generated by the conversion script, and paste them into the MySQL prompt. Quindi copia e incolla l'intero elenco di istruzioni SQL generato automaticamente la conversione di script, e le incolla in MySQL prompt dei comandi. Each and every SQL command should now be processed and executed by MySQL one by one. Ogni comando SQL dovrebbe ora essere trasformati ed eseguiti da MySQL uno per uno. You may need to press Enter key to finish off the last one. Potrebbe essere necessario premere il tasto Invio per finire l'ultimo.
- During the processing, the similar error messages related to key length as mentioned may appears. Durante le fasi di lavorazione, i messaggi di errore analoghi relativi alla lunghezza della chiave, di cui sembra maggio. In my case, the conversion to BLOB failed with such message in the following fields: Nel mio caso, la conversione a BLOB non riuscito con tale messaggio nei seguenti settori:
wp_categories.category_nicename
wp_comments.comment_approved
wp_links.link_visible
wp_options.option_name
wp_postmeta.meta_key
wp_posts.post_status
wp_posts.post_name
wp_posts.post_type
wp_usermeta.meta_key
wp_users.user_loginAll these fields are unlikely to contains non-ASCII characters. Tutti questi campi sono improbabile che contiene caratteri non ASCII. And fields such as category_nicename (category slug) and post_name (post slug) have been URL encoded (where your URL with unsafe non-alphanumeric characters will be replaced with a percent (%) sign followed by two hex digits and spaces encoded as plus (+) signs). E campi come ad esempio il category_nicename (categoria interlinea) e post_name (post slug) sono stati codificati URL (se il tuo URL non sicuri con caratteri non alfanumerici verrà sostituito con una percentuale (%) segno seguito da due cifre esadecimali e spazi codificati come segno più ( +) I segni). Initial encoding of byte codes and character assignments for UTF-8 is consistent with ASCII, so direct conversion of these fields to UTF8 should not bring too much problem. Iniziale di byte di codifica codici e le assegnazioni per carattere UTF-8 è coerente con ASCII, in modo conversione diretta di questi campi a UTF8 non dovrebbe portare troppa problema.
- Edit the wp-config.php file to add in DB_CHARSET and DB_COLLATE definitions. Modificare il wp-config.php file da aggiungere in DB_CHARSET e DB_COLLATE definizioni. Add the following two lines, preferably under the section of MySQL Settings: Aggiungere le seguenti due righe, preferibilmente sotto la sezione Impostazioni di MySQL:
define(’DB_CHARSET’, ‘utf8′); define ( 'DB_CHARSET', 'utf8');
define(’DB_COLLATE’, ”); define ( 'DB_COLLATE', ");As explained in Come spiegato in WordPress Codex WordPress Codex , DB_COLLATE is left blank (null) so that the database collation will be automatically assigned by MySQL based on the database character set. , DB_COLLATE viene lasciato vuoto (null) in modo tale che la base di dati raccolta verrà automaticamente assegnato da MySQL basato su banca dati set di caratteri.
- Recreate the indexes and/or FULLTEXT indexes been dropped, if any. Ricreare gli indici e / o indici FULLTEXT stato eliminato, se del caso.
- Activate the blog back into production mode. Attivare il blog di ritornare in modalità di produzione.
- Check your blog to see if everything and every characters is okay. Verificare il tuo blog per vedere se tutto e di tutti i caratteri sia corretto.
- Delete the PHP script. Eliminare il script PHP.
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
- WordPress Charset Encoding Problem After Upgrading to Version 2.2 WordPress charset codifica problema dopo l'aggiornamento alla versione 2,2
- How to Backup and Restore (Export and Import) MySQL Databases Tutorial Come fare il backup e ripristino (esportazione e importazione) basi di dati di MySQL Tutorial
- IMP-00016 Required Character Set Conversion Not Supported Error when Import to Oracle Database IMP-00016 richieste di conversione set di caratteri non supportato errore quando l'importazione di database Oracle
- Oracle EXP-00091 Error When Export Database Oracle exp-00091 errore durante l'esportazione del database
- WordPress 2.2 Released for Free Download WordPress 2,2 immesse in libera Download
- 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
- Check and Optimize MySQL Database Automatically with Crontab/Cron Controllare e ottimizzare la base di dati di MySQL automaticamente con crontab / cron
- 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
- How to Move WordPress Blog to New Domain or Location Come muoversi a wordpress blog nuovo dominio o la località









June 23rd, 2007 04:27 23 giugno 2007 04:27
Hi…
I have to say (in my favor) that m not changing directly the database character set, please review my plugin and you will see that first it will convert your database binary and them to utf8 and finally it will put everything like before encoding but obviously with the UTF-8 character set… Devo dire (a mio favore) che m non cambia direttamente il database set di caratteri, ti invitiamo a consultare il mio plugin e vedrete che prima si convertirà la vostra base di dati binari e loro a utf8 e, infine, si metterà tutto come prima della codifica, ma, ovviamente, con la codifica UTF-8 set di caratteri…
I prefer to do and a.. Io preferisco fare e a..
ALTER TABLE table_name CONVERT TO CHARACTER SET binary ALTER TABLE table_name di convertire set di caratteri binari
Than just make a mysql sentence for every text/string field, because as you can see the problems comes with key and some index value and the BLOB field type change. Non solo fare una frase mysql per ogni testo / stringa campo, perché come potete vedere i problemi viene fornito con chiave e alcuni indice valore e il tipo di campo BLOB cambiamento.
Converting truth the sentence that my plugin use will transform all char to binary, all varchar to varbinary, all text (tynitext, text, mediumtext, longtext) to his binary representations (tinyblob, blob, mediumblob, longblob) and finally just set enum and set types with the collation binary. Conversione verità la frase che il mio plug in uso trasformare tutti i caratteri a binario, a tutti i varchar varbinary, tutto il testo (tynitext, testo, mediumtext, longtext) alla sua rappresentazione binaria (tinyblob, blob, mediumblob, longblob) e, infine, appena impostato e enum impostare i tipi con la raccolta binario.
I just came here to say this in favor and by the way the majority of the problems of my plugins are related to host configurations and other things that obviously i can control. Ho appena venuto qui per dire questo a favore e dal modo in cui la maggior parte dei problemi del mio plugin sono connessi ad ospitare le configurazioni e altre cose che, ovviamente, i in grado di controllare.
BTW its a better to solution to avoid problems of key and index by just setting the correct binary representation rather than using blob in all the way. BTW sua a una migliore soluzione per evitare problemi di chiave e indice di appena l'impostazione corretta rappresentazione binaria piuttosto che utilizzare in tutti i blob la strada.
Greetings from mexico and sorry for all mistyping problems. Saluti da Messico e dispiace per tutti i problemi mistyping.
July 11th, 2007 16:00 11 luglio 2007 16:00
[...] MySQL 本身的問題,便一知半解地去亂 set,結果一樣。。。 (5:00) 直至我讀完這篇文章,發現是 WP 由 2.1 升至 2.2.1 之後,閱讀 db 的 script 真的變了,讀不了 SQL db [...] [...] MySQL本身的问题,便一知半解地去乱impostato,结果一样... (5:00)直至我读完这篇文章,发现是WP由2,1升至2.2.1之后,阅读db的script真的变了,读不了SQL db [...]
July 21st, 2007 15:33 21 luglio 2007 15:33
[...] If this case, use –default-character-set=charset_name option to specify the character set or convert the database to UTF8. [...] Se questo caso, l'uso di caratteri di default-set = charset_name opzione per specificare il set di caratteri o convertire il database per utf8. Get help or contribute tips or tricks at My Digital Life [...] Ricevere aiuto o contribuire suggerimenti o trucchi a mio Digital Life [...]
September 4th, 2007 18:57 4 settembre 2007 18:57
[...] die Schnauze. [...] Die Schnauze. Mit etwas mehr Hartnäckigkeit bei der Suche konnte ich am Ende dann doch noch eine passende Konvertierungsanleitung finden, die auf mystische Art und Weise sowohl auf das fehlerhafte Plugin hinweist, als auch die [...] Mit etwas mehr Hartnäckigkeit bei der Suche è stata ampliata ich am Ende dann doch noch eine passende Konvertierungsanleitung trovate, die auf mystische Arte e Weise sowohl auf das fehlerhafte Plugin hinweist, als auch die [...]
September 16th, 2007 02:04 16 settembre 2007 02:04
Why don’t you just link the file directly here? Perché non basta collegare direttamente il file qui?
It is pain to register just to download the file. E 'il dolore per la registrazione solo per scaricare il file.
September 16th, 2007 03:15 16 settembre 2007 03:15
[...] to convert my database to UTF8 so my blog doesn’t look funny. [...] Per convertire il mio database per UTF8 in modo mio blog non è divertente. The plugin didn’t work, another site requires registration (how lame), so I came up with my own solution which is KISS all the [...] Il plugin non ha funzionato, un altro sito richiede la registrazione (come lame), così ho avuto con la mia soluzione è che tutti i KISS [...]
September 16th, 2007 03:59 16 settembre 2007 03:59
Hi Chris, sorry for inconveniences, it’s so that users can discuss any bugs on the script on the forum when needed. Ciao Chris, spiacenti per i disagi, è così che gli utenti possono discutere di eventuali errori per lo script sul forum quando necessario.
September 29th, 2007 03:23 29 settembre 2007 03:23
[...] la codificación de acentos, ñ y símbolos para que funcionara bien. [...] La codificación de acentos, ñ símbolos y para que funcionara bien. Para problemas recomiendo este artículo que indica los pasos para convertir tu bbdd a codificación [...] Per problemi recomiendo este artículo che indica los pasos para convertire tu bbdd uno codificación [...]
November 17th, 2007 07:55 17 novembre 2007 07:55
[...] ponga, siempre hay algo que me va a salir desconfigurado: los posts o los comentarios. [...] Ponga, sempre fieno algo que me va uno SALIR desconfigurado: i post o commento. He probado Egli ha probado
November 19th, 2007 03:35 19 Novembre 2007 03:35
[...] ficheiro wp-config.php e deixar os valores das constantes DB_CHARSET e DB_COLLATE em branco. [...] Ficheiro wp-config.php e lasciare i valori das constantes DB_CHARSET e DB_COLLATE em branco. Outra solução é converter a base de dados toda para UTF-8, o que para mim já soa a [...] Questa è un'altra soluzione convertitore di una base de dados para toda UTF-8, o che para mim já SOA [...]
December 14th, 2007 03:05 Dicembre 14, 2007 03:05
Hi, it worked fine for me using MyPHPAdmin. Ciao, ha funzionato bene per me utilizzando MyPHPAdmin.
Thanks for the article. Grazie per l'articolo.
February 27th, 2008 01:20 27 febbraio 2008 01:20
I’m using PHPmyAdmin and try to convert my database to utf-8, but…PHPmA interrupts the process with the first error message (concering key length as mentioned in ur guide). Sto utilizzando phpMyAdmin e provare a convertire la mia banca dati a UTF-8, ma… PHPmA interrompe il processo con il primo messaggio di errore (concering lunghezza della chiave, di cui al ur guida).
Is there a way to make PHPmA ignore errors / to proceed the other tables? C'è un modo per rendere PHPmA ignorare errori / a procedere altre tabelle?
Thx in advance! Thx in anticipo!
March 2nd, 2008 01:52 Mar 2, 2008 01:52
[...] How to convert character set and collation of wordpress database? [...] [...] Come convertire i set di caratteri e la raccolta di wordpress banca dati?  [...]
March 19th, 2008 03:32 19 marzo 2008 03:32
I must applaud you for publishing this. Devo applaudire voi per la pubblicazione di questo. After hours of searching for an easy solution, when my provider moved my database to an “upgraded” platform, I was able to follow your instructions and and get the character set changed. Dopo ore di ricerca di una soluzione facile, quando il mio fornitore spostato la mia banca di dati su un "aggiornato" piattaforma, sono stato in grado di seguire le istruzioni e il tuo e ottenere il set di caratteri cambiato. I used the phpmyadmin to execute the code and deleted the lines that had errors. Ho usato il phpmyadmin di eseguire il codice e ha soppresso le linee che erano errori. It ran perfectly and I only needed to edit a few slugs that had odd character in them. Corresse perfettamente e ho solo bisogno di modificare alcuni limacce che ha avuto carattere strano in loro. Fabulous! Favoloso!
March 31st, 2008 13:09 31 marzo 2008 13:09
[...] How to Convert Character Set and Collation of WordPress Database Guide to Convert WordPress Database Character Set to UTF8 (Unicode) — » My Digital Life [...] [...] Come convertire i set di caratteri e riepilogo di WordPress Database Guida Converti WordPress Database Set di caratteri a utf8 (Unicode) - »Il mio Digital Life [...]
June 19th, 2008 12:19 19 giugno 2008 12:19
[...] with troubleshooting the issue of not able to use the 2 lines in the wp-config.php file. [...] La risoluzione dei problemi con la questione della non in grado di utilizzare le 2 linee in wp-config.php file. Tried this method, but it didn’t work. Provato questo metodo, ma non ha funzionato. Then I read up the idea of converting the SQL in a text editor. Poi ho letto l'idea di conversione di SQL in un editor di testo. [...]
July 24th, 2008 18:53 24 luglio 2008 18:53
I’ve uploaded an extended script to the thread. Ho caricato un lungo script per il thread. It handles cases where the tables and columns are utf8 but the strings inside are latin1. Gestisce i casi in cui le tabelle e le colonne sono utf8, ma le stringhe all'interno sono latin1. This happens when the tables are created as utf8 but the wp-config.php is missing DB_CHARSET and DB_COLLATE variables. Ciò accade quando le tabelle sono create come utf8 ma il wp-config.php è mancante DB_CHARSET e DB_COLLATE variabili.