Home › Forum › Problemi Vari con WP › Esportazione database e caratteri accentati
-
AutorePost
-
-
9 Dicembre 2009 alle 16:19 #12399ErfoPartecipante
Buon pomeriggio a tutti.
Devo trasferire un dominio e quindi sto facendo il backup del database (mysql).
Per fare il backup seguo le istruzioni del wiki, una volta aperto il file, salvato sul mio pc, lo apro con un editor e vedo che nei post e nei commenti, le lettere accentate sono sostituite da caratteri del tipo: àƒÂ¨ , àƒÂ²
Ripeto le operazioni che faccio:
Vado su phpmyadmin, seleziono il database, clicco su esporta e seleziono le seguenti opzioni:
*SQL
*Struttura
-aggiungi drop table
-aggiungi valore auto-increment
-usa i blackquotes
*Dati
Salva con nome > Nessuno
Nel file wp-config.php ho:
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
Nella home di phpmyadmin ho:
Set di caratteri MySQL: UTF-8 Unicode (utf8)
collazione della connessione di MySQL: utf8_general_ci
Quindi il problema è nell'esportazione e NON nell'importazione.
-
9 Dicembre 2009 alle 16:56 #70043SteveAglAmministratore del forum
Che in un editor di testo tu veda le accentate come sequenze di caratteri è normale… se l’editor non gestisce l’UTF8
-
9 Dicembre 2009 alle 17:09 #70044ErfoPartecipante
Non è un problema di editor. Con altri database ho fatto la stessa cosa, e i caratteri accentati si vedono perfettamente.
Mi è venuta un’idea. Ho un editor che fa il replace di tutte le parole che voglio.
Ad esempio inserisco àƒÂ¨ e dico di rimpiazzarlo con è.
Ho appena provato e ci sta pochi secondi a convertire tutti questi caratteri.
Va bene come soluzione, no?
-
9 Dicembre 2009 alle 18:12 #70048SteveAglAmministratore del forum
Siamo sicuri che il tuo DB sia utf8? Bisogn guardare la codifica delle singole tabelle non della hompeage di phpmyadmin
-
9 Dicembre 2009 alle 19:34 #70049ErfoPartecipante
Entrando nel database relativo a wordpress vedo le tabelle ed accanto il collation.
Quest’ultimo è quasi per tutte le tabelle utf8_general_ci e in alcuni casi latin1_swedish_ci
Intendi questo?
-
1 Gennaio 2010 alle 8:46 #70393oukechartomonoPartecipante
Ho lo stesso problema. Devo esportare il database del blog della mia scuola perché quello attuale non è adeguato alla nuova versione di wordpress. Anch’io quando importo vedo i caratteri accentati modificati e trovo sempre scritto latin1_swedish_ci.
Ho provato a correggere i caratteri usando scite, ma quando poi carico il file c’è sempre qualche errore.
Ho provato a chiedere ad aruba, ma senza successo.
Ho provato anche con le istruzioni che si trovano qui: http://www.wpitaly.it/2008/11/27/risolvere-i-problemi-di-codifica-del-database-di-wordpress/, ma senza risultato.
Grazie
-
4 Gennaio 2010 alle 10:19 #70433oukechartomonoPartecipante
Ho ricevuto due indicazioni grazie alla comunità di “Porte aperte sul web”.
Eccole:
http://codex.wordpress.org/Converting_Database_Character_Sets
Provo e poi faccio sapere.
-
4 Febbraio 2010 alle 5:48 #71142oukechartomonoPartecipante
Ho provato più volte, ma c’è sempre qualche intoppo e servono conoscenze di MySQL superiori alle mie (modestissime).
Chiederemo ad un professionista.
-
15 Febbraio 2010 alle 20:34 #71485oukechartomonoPartecipante
Alla fine ho corretto il database con il “trova e sostituisci” di un editor. Ai caratteri strani ho sostituito il codice html per i caratteri accentati.
Approssimativo, ma mi pare abbia funzionato.
Cosଠho finalmente aggiornato alla 2.9.1
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.