Hello,
I have installed mediawiki on http://wiki.placedusport2.com/ to give a place for community work. I had to export and reimport mysql data via phpmyadmin. All right, except french spécial char "à" (a with an accent on top) wich appear as "?" in every page.
I try to change this via a little script in wiki_cur and wiki_text tables, but nothing work. Could anyone help me? Sorry if the question was already asked, I have found nothing about this problem.
Regards Cédric
ps: here is the script
function Remplace($table, $champid, $champtext) { $res=mysql_query('select '.$champid.', '.$champtext.' from '.$table); while ($row = mysql_fetch_assoc($res)) { //the string used as search string in str_replace is the one I can see thought phpmyadmin in cur/old_text fields. $row[$champtext]=str_replace('�', utf8_encode('à'), $row[$champtext]); mysql_query('UPDATE '.$table.' SET '.$champtext.'="'.mysql_escape_string($row[$champtext]).'" where '.$champid.'='.$row[$champid]); } }
Cédric wrote:
Hello,
I have installed mediawiki on http://wiki.placedusport2.com/ to give a place for community work. I had to export and reimport mysql data via phpmyadmin. All right, except french spécial char "à" (a with an accent on top) wich appear as "?" in every page.
I try to change this via a little script in wiki_cur and wiki_text tables, but nothing work. Could anyone help me? Sorry if the question was already asked, I have found nothing about this problem.
Regards Cédric
ps: here is the script
function Remplace($table, $champid, $champtext) { $res=mysql_query('select '.$champid.', '.$champtext.' from '.$table); while ($row = mysql_fetch_assoc($res)) { //the string used as search string in str_replace is the one I can see thought phpmyadmin in cur/old_text fields. $row[$champtext]=str_replace('�', utf8_encode('à'), $row[$champtext]);
mysql_query('UPDATE '.$table.' SET'.$champtext.'="'.mysql_escape_string($row[$champtext]).'" where '.$champid.'='.$row[$champid]); } }
No one can help me?
Regards Cédric
On 12/23/05, Cédric cedric@daneel.net wrote:
Cédric wrote:
Hello,
I have installed mediawiki on http://wiki.placedusport2.com/ to give a place for community work. I had to export and reimport mysql data via phpmyadmin. All right, except french spécial char "à" (a with an accent on top) wich appear as "?" in every page.
I try to change this via a little script in wiki_cur and wiki_text tables, but nothing work. Could anyone help me? Sorry if the question was already asked, I have found nothing about this problem.
Regards Cédric
ps: here is the script
function Remplace($table, $champid, $champtext) { $res=mysql_query('select '.$champid.', '.$champtext.' from '.$table); while ($row = mysql_fetch_assoc($res)) { //the string used as search string in str_replace is the one I can see thought phpmyadmin in cur/old_text fields. $row[$champtext]=str_replace('�', utf8_encode('à'), $row[$champtext]);
mysql_query('UPDATE '.$table.' SET'.$champtext.'="'.mysql_escape_string($row[$champtext]).'" where '.$champid.'='.$row[$champid]); } }
No one can help me?
Cédric,
I went to your wiki and looked at a few random pages. I saw plenty of a acent grave characters and no odd ?s.
I'm using firefox 1.0.7 on Ubuntu linux 5.10.
This problem is probably either with the way your browser is displaying the pages, or in phymyadmin's UI. Have you checked your browser's preferences?
-- Rick DeNatale
Visit the Project Mercury Wiki Site http://www.mercuryspacecraft.com/
mediawiki-l@lists.wikimedia.org