[TYPO3-UG Italy] misteri utf-8 be e db
Alessandro Tuveri
at at uniud.it
Thu Feb 23 14:12:07 CET 2012
Salve
ad un admin che chiedeva come settare localconf.php via installer
circa UTF-8 nel BE e database -- e' seguita questa risposta:
http://lists.typo3.org/pipermail/typo3-dev/2012-January/044904.html
che conclude:
"Short conclusion:
for 4.6 you should have
$TYPO3_CONF_VARS['SYS']['setDBinit'] = 'SET NAMES utf8;';
$TYPO3_CONF_VARS['BE']['forceCharset'] = 'utf-8';"
ora qualcuno converrà con me che nell'installer, ALL CONFIGURATION, si
vede invece questo:
"[forceCharset]
String: Normally the charset of the backend users language selection is used.
If you set this value to a charset found in t3lib/csconvtbl/ (or
"utf-8") the backend (and database) will ALWAYS use this charset.
Always use a lowercase value.
NOTICE: This option is deprecated since TYPO3 4.5, and will be removed in 4.7.
Please use proper tools to set your installation to native UTF-8.
[BE][forceCharset] = utf-8"
Quindi l'uso di questa opzione è deprecato dalla 4.5 e sarà rimosso nella 4.7.
Il dilemma e' questo:
dalla v. 4.7 l'opzione sarà tolta senza alcuna conseguenza oppure cosa
accadra'?!?
Per esempio io in una v. 4.5.11 ho fatto una prova svuotando:
[BE][forceCharset] =
torno nel BE e vedo che i caratteri accentati in italiano "saltano"
completamente, pero' se apro una finestra per editare un contenuto e
verifico il codice html vedo che il set di caratteri e' UTF-8. Posso
presumere (e lo spero), che tutto sia OK e che typo3 abbia bisogno
ancora dell'opzione forceCharset settata a utf-8 per capire come usare
i caratteri.
Certo se nel passare alla v.4.7 il comportamento sarà questo allora le
premesse sono preoccupanti. Se invece nulla cambierà pur non esistendo
questa opzione allora stiamo tranquilli.
qualcuno ha commenti o spiegazioni? grazie in anticpo
dettagli: prova effettuata con v.4.5.11, SET DBinit settato a SET
NAMES utf8; e database gia' utf-8 con giusta collation...
----------------------------------------------------------------------
SEMEL (SErvizio di Messaging ELettronico) - AINF, Universita' di Udine
More information about the TYPO3-UG-Italy
mailing list