View Full Version : [SOLVED] - probleme with french caracters
mikees
03-14-2006, 11:30 PM
Take a look at : {old test link removed}
The é, Ã**censored**, è, etc... doesn't work well from the parser... This caracters are replaced by 鬩.
David
03-14-2006, 11:54 PM
Ok, I will see what I can do.
mikees
03-29-2006, 02:48 PM
When did you think you can take a look on it ?
In DB the caracters are good, so the problem is not when you parse, but only when the script take the data in the db and put them on the site.
You can test with that feed : http://www.lequipe.fr/Xml/Football/Titres/actu_rss.xml
Thank you.
David
03-29-2006, 04:19 PM
Ok, sorry for the delay. I now have someone looking at this.
You should have an update in 1-2 days. If not, please bug me.
Thanks,
David
David
03-30-2006, 05:04 PM
This problem is only with the encoding... by default NewsTopica uses UTF-8 enconding. This problem can be fixed by choosing ISO-8859-1 instead of current UTF-8.
You can change encoding by editing "templates/header.tpl" file:
he must replace this code (line 6)
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
with this
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
mikees
04-04-2006, 05:21 PM
Sorry david, but it doesn't work.
Take a look at : http://www.news-finder.com/test/
David
04-04-2006, 05:28 PM
Ok, I will see what else can be done.
mikees
04-07-2006, 03:54 PM
I've got the solution :
It's in the includes/config.php file where you need to change the charset.
Juste replace the defaut header by :
header('Content-Type: text/html; charset=iso-8859-1');
and it work well ;)
Your solution don't work with title and description of the directory, don't change the charset, just content, title by encode utf-8 when inserting in the database.
In admin/dir_importrss.php on line 90,
change the line by:
add_link($row['CATEGORY_ID'],$row['ID'],utf8_encode($item->link),utf8_encode($item->title),utf8_encode($item->content),$item->pubdate,2);
So you must add utf8_encode() for link, title, description.
Foxito
05-28-2006, 05:20 PM
So finally what's the solution ?
David
05-28-2006, 05:32 PM
From the above posts, what changes have you attempted so far?
What is an example of a page where it is not working?
When viewing source on the page, what is the encoding now?
Also note, that it is working in 3.0 here:
http://www.newstopica.com/demo3/index.php?c=5
vBulletin® v3.7.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.