affectation du charset dans spip

Gilles Vincent <[email protected]>
Newsgroups gmane.comp.web.spip.devel
Message-ID <CA+Q4CmsJA+MCVst=ND-wNuCSReKHfan4Oify_zr_d9B0tDmqkg@mail.gmail.com>
actuellement on utilise une requête en "SET CHARSET", mais cela pose
quelques problèmes si on utilise mysql_real_escape_string(). D'ailleurs
pourquoi est-ce qu'on utilise jamais cette fonction ?

Quand c'est nécessaire, je suggère d'utiliser la fonction mysql_set_charset(
'utf8', $conn)
http://php.net/manual/fr/mysqlinfo.concepts.charset.php

(maintenant, peut-être que ce n'est jamais nécessaire)

Qu'en dites-vous ?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.