{"id":105,"date":"2008-09-25T10:26:33","date_gmt":"2008-09-25T08:26:33","guid":{"rendered":"http:\/\/luca.lovalvo.net\/1_luca_lo_valvo\/archive\/254_migration_joomla_problmes_jeux_caractres_utf8.html"},"modified":"2022-11-04T15:57:55","modified_gmt":"2022-11-04T14:57:55","slug":"migration-joomla-problemes-jeux-caracteres-utf8","status":"publish","type":"post","link":"https:\/\/luca.lovalvo.ch\/blog\/migration-joomla-problemes-jeux-caracteres-utf8\/","title":{"rendered":"Migration Joomla, probl\u00e8mes jeux caract\u00e8res UTF8"},"content":{"rendered":"<p>En cas de migration de Joomla d&#39;une BDD &agrave; une autre, (ou d&#39;un hosting &agrave; un autre) il arrive&nbsp; r&eacute;guli&egrave;rement que des probl&egrave;mes de jeux de caract&egrave;re surviennt suite &agrave; la migration.<\/p>\n<p>Afin d&#39;afficher correctement tous nos beaux accents de la langue fran&ccedil;aise il suffit d&#39;indiquer &agrave; mysql quels jeux de caract&egrave;res utiliser au moment de la conexion.<\/p>\n<p>Dans : <font color=\"#008000\">%PATH%<\/font><strong>\/ include\/database.php<\/strong><\/p>\n<p><strong>=&gt; Ligne 102 :&nbsp; <\/strong><br \/><font color=\"#ff0000\">\/\/@mysql_query(&quot;SET NAMES &#39;utf8&#39;&quot;, $this-&gt;_resource);<\/font><\/p>\n<p><strong>Ajouter en ligne 103 : <\/strong><br \/><font color=\"#008000\">@mysql_query(&quot;SET character_set_connection=utf8, character_set_results=latin1, character_set_client=binary&quot;);<\/font><\/p>\n<p><strong>Ce qui vous donne : <\/strong><\/p>\n<div align=\"left\"><font size=\"1\"><span style=\"background-color: #c0c0c0\">101 :<\/span> <\/font><font size=\"1\" color=\"#0000ff\">$this-&gt;_table_prefix = $table_prefix;<\/font><br \/><font size=\"1\"><span style=\"background-color: #c0c0c0\">102 :<\/span> <\/font><font size=\"1\" color=\"#0000ff\">\/\/@mysql_query(&quot;SET NAMES &#39;utf8&#39;&quot;, $this-&gt;_resource);<\/font><br \/><font size=\"1\"><span style=\"background-color: #c0c0c0\">103 :<\/span> <\/font><font size=\"1\" color=\"#0000ff\">@mysql_query(&quot;SET character_set_connection=utf8, character_set_results=latin1, character_set_client=binary&quot;);&nbsp; <\/font><br \/><font size=\"1\"><span style=\"background-color: #c0c0c0\">104 :<\/span> <\/font><font size=\"1\" color=\"#0000ff\">$this-&gt;_ticker = 0;<\/font><br \/><font size=\"1\"><span style=\"background-color: #c0c0c0\">105 :<\/span> <\/font><font size=\"1\" color=\"#0000ff\">$this-&gt;_log = array();<\/font><\/div>\n","protected":false},"excerpt":{"rendered":"<p>En cas de migration de Joomla d&#39;une BDD &agrave; une autre, (ou d&#39;un hosting &agrave; un autre) il arrive&nbsp; r&eacute;guli&egrave;rement que des probl&egrave;mes de jeux de caract&egrave;re surviennt suite &agrave; la migration. Afin d&#39;afficher correctement tous nos beaux accents de la langue fran&ccedil;aise il suffit d&#39;indiquer &agrave; mysql quels jeux de caract&egrave;res utiliser au moment [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-105","post","type-post","status-publish","format-standard","hentry","category-programmation"],"_links":{"self":[{"href":"https:\/\/luca.lovalvo.ch\/blog\/wp-json\/wp\/v2\/posts\/105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/luca.lovalvo.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/luca.lovalvo.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/luca.lovalvo.ch\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/luca.lovalvo.ch\/blog\/wp-json\/wp\/v2\/comments?post=105"}],"version-history":[{"count":1,"href":"https:\/\/luca.lovalvo.ch\/blog\/wp-json\/wp\/v2\/posts\/105\/revisions"}],"predecessor-version":[{"id":313,"href":"https:\/\/luca.lovalvo.ch\/blog\/wp-json\/wp\/v2\/posts\/105\/revisions\/313"}],"wp:attachment":[{"href":"https:\/\/luca.lovalvo.ch\/blog\/wp-json\/wp\/v2\/media?parent=105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/luca.lovalvo.ch\/blog\/wp-json\/wp\/v2\/categories?post=105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/luca.lovalvo.ch\/blog\/wp-json\/wp\/v2\/tags?post=105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}