n° 186
Luglio/Agosto 2013
Giugno 19, 2013, 02:59:41 pm *
Benvenuto! Accedi o registrati.
Hai dimenticato l'e-mail di attivazione?

Accesso con nome utente, password e durata della sessione
Notizia:
 
   Indice   Linux Windows Techassistance Gameassistance videogame hardware Aiuto Ricerca Agenda Downloads Accedi Registrati  

* Messaggi recenti
Messaggi recenti
Pagine: [1]   Vai giù
  Stampa  
Autore Discussione: Installazione Moodle Unicode  (Letto 782 volte)
0 utenti e 1 Utente non registrato stanno visualizzando questa discussione.
mega_saiyan
Sr. Member
****

Karma: +16/-15
Scollegato Scollegato

Messaggi: 989


Mostra profilo
« inserita:: Luglio 05, 2012, 08:20:42 am »

Scusatemi per il disturbo. Spero di essere nella sezione giusta, altrimenti penso sia di competenza della sezione PHP o web server. In tal caso o tale spostamento lo effettuano i moderatori oppure lo elimino e lo sposto nella sezione secondo voi più consona.

Mentre installavo moodle 2.3 mi è comparso questo messaggio:

unicode   E' necessaria l'installazione e attivazione
E' richiesto che tutti i dati vengano memorizzati in formato Unicode (UTF-8). Le nuove installazioni dovrebbero essere effettuate in database che hanno il proprio set di caratteri default impostato come Unicode. Se si sta facendo un aggiornamento, bisogna eseguire il processo di migrazione UTF-8 (vedi pagina di Amministrazione).
 
Quale web server / database uso WAMP 2.2 e se vado in phpMyAdmin c'è scritto Collation della connessione del server: utf8_general_ci. Ho provato anche a scrivere default-character-set=utf8 all'interno del file my.ini nella sezione [wampmysqld] ma mi viene detto che tale direttiva non è riconosciuta. Ho anche scritto sempre nella stessa sezione:

character-set-server=utf8
collation-server=utf8_general_ci

ma non è cambiato nulla.


Qualcuno mi può aiutare?

Grazie.
Registrato
bertolottipf
Full Member
***

Karma: +4/-4
Scollegato Scollegato

Messaggi: 326


Mostra profilo E-mail
« Risposta #1 inserita:: Luglio 05, 2012, 10:08:13 am »

Risposta da http://docs.moodle.org/22/en/Converting_your_MySQL_database_to_UTF8

Citazione
Default Mysql character set

Moodle requires UTF8 in order to provide better multilingual support and has done since Moodle 1.8. However the UTF8 check during install and upgrade was only been implemented in Moodle 2.0 and you may find you are unable to upgrade because your database was not set up originally as utf8 when you first installed Mysql or because you have been running Moodle since before 1.8 and haven't previously converted your database. It is perhaps worth noting that Mysql is nothing to do specifically with Moodle. It is a database engine that is very widely used in open source projects and it contains details of all the stuff in your Moodle such as usernames etc and pointers to all the files that have been uploaded to it.
You need to do two things. 1) Change your mysql to have utf8 as its character set and 2) Change your database to utf8.
The descriptions elsewhere in this section cover making the utf8 database versions using mysqldump.
To make mysql default to utf8 you can edit /etc/my.cnf as follows.

(This was good for ubuntu server lucid 10.04 2.6.32-24-server Jan 2011)
In the client section of my.cnf
[client] ... .... ...
default-character-set=utf8 ....

and further down in my.cnf
[mysqld] ... ...
default-character-set=utf8
default-collation=utf8_unicode_ci
character-set-server=utf8
collation-server=utf8_unicode_ci
... ...
Having made your default character set utf, a mysqldump restore of your database with the --skip-character-set parameter, will restore the database with your new default character set of utf8.
utf8_unicode and utf8_general are not the same but similar. The difference is described in the unicode documentation page. (Link below)
Converting an empty database
Registrato
mega_saiyan
Sr. Member
****

Karma: +16/-15
Scollegato Scollegato

Messaggi: 989


Mostra profilo
« Risposta #2 inserita:: Luglio 05, 2012, 10:15:08 am »

Ti ringrazio. Mi ero concentrato sul modificare il file my.ini invece era sufficiente impostare per il db il tipo corretto.
Registrato
Pagine: [1]   Vai su
  Stampa  
 
Vai a:  

Copyright © 2011 Edizioni Master SpA. p.iva : 02105820787

Tutti i diritti di proprietà letteraria e artistica riservati. - Privacy



Links to Page