Support Forums

French caracters in external.php

This is a discussion on French caracters in external.php within the Technical Support forums, part of the Technical Support Forums category; Hi once again, Everything works pretty fine with my external.php file except the fact that some caracters are not displayed ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 06-14-2009, 10:49 AM   #1
Member
 
Join Date: Apr 2009
Location: France
Posts: 57
Rep Power: 11
kayfi is on a distinguished road
Default French caracters in external.php

Hi once again,

Everything works pretty fine with my external.php file except the fact that some caracters are not displayed at all. I mean french caracters with accents like: �, �, � etc.

I've modified the following lines to match the french charset, but those caracters are still not displayed:

Quote:
// set XML type and nocache headers
header('Content-Type: text/xml; charset=iso-8859-1');
header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');

// print out the page header
echo '<?xml version="1.0" encoding="iso-8859-1"?>' . "\r\n";
echo '<rss version="2.0">' . "\r\n";
How can I fix it if it's possible ?
Best regards !
__________________
v 4.1.3 Developer
Default templates

Last edited by kayfi; 06-14-2009 at 11:00 AM.
kayfi is offline  
Old 06-14-2009, 02:43 PM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,353
Rep Power: 85
seymourjames is a jewel in the rough
Default

Its a long time ago but I used this. It may not be the same in 4.13

// set XML type and nocache headers
header('Content-Type: text/xml');
header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');

// print out the page header
echo '<?xml version="1.0" encoding="iso-8859-1"?>' . "\r\n";
echo '<rss version="2.0">' . "\r\n";
echo "<channel>\r\n";

then later in the code


echo "\t\t\t".'<title>'. htmlspecialchars($listing['title']) . $seperator . unhtmlentities($price) .'</title>'."\r\n";
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline  
Old 06-14-2009, 03:50 PM   #3
Member
 
Join Date: Apr 2009
Location: France
Posts: 57
Rep Power: 11
kayfi is on a distinguished road
Default

Thanks for your answer Seymour but it did not fix the problem. Maybe due to the latest version of the file (wich is in fact the same from v4.1.2)...
Hope Eric or Larry will bring me some help !
Thanks again !
__________________
v 4.1.3 Developer
Default templates
kayfi is offline  
Old 06-15-2009, 04:43 PM   #4
Member
 
Join Date: Apr 2009
Location: France
Posts: 57
Rep Power: 11
kayfi is on a distinguished road
Default

Eric can you provide me some help about this bug ?
Please !
__________________
v 4.1.3 Developer
Default templates
kayfi is offline  
Old 06-15-2009, 04:49 PM   #5
curmudgeon
 
Join Date: Mar 2006
Posts: 5,414
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by kayfi
Eric can you provide me some help about this bug ?
Please !
Its not really a bug it has to do with character encoding and applies to all RSS. Its not a 68C specific thing.

If there are sections you dont want parsed as XML surround them with cdata tags....

![CDATA[Non Xml Content Here#$%@ ]]
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 06-15-2009, 06:33 PM   #6
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,353
Rep Power: 85
seymourjames is a jewel in the rough
Default

Sorry - forgot I had this line in there too. The file was from 4.09

echo "\t\t\t". "<description><![CDATA[". $imDescription . "]]></description>"."\r\n";
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline  
Old 06-17-2009, 07:44 PM   #7
Member
 
Join Date: Apr 2009
Location: France
Posts: 57
Rep Power: 11
kayfi is on a distinguished road
Default

Quote:
Originally Posted by seymourjames
Sorry - forgot I had this line in there too. The file was from 4.09

echo "\t\t\t". "<description><![CDATA[". $imDescription . "]]></description>"."\r\n";
That did'nt change anything !
Feel so sad !
__________________
v 4.1.3 Developer
Default templates
kayfi is offline  
Old 06-24-2009, 01:33 AM   #8
Customer
 
Join Date: Jun 2008
Posts: 72
Rep Power: 15
fendter is on a distinguished road
Default

have you figured out a solution? I'm building a page for Vietnam and need the same characters as French.
fendter is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
French Frontend Language Eric Barnes Modules / Plugins / Modifications 2 03-20-2009 10:06 AM
language french masstox Technical Support 0 12-03-2008 01:54 PM
French Site seymourjames Technical Support 4 10-16-2008 05:25 AM
French project about classified website ! tungsten Pre Sales Questions 0 04-24-2008 04:55 PM


All times are GMT -4. The time now is 06:08 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0