Current location: Hot Scripts Forums » Programming Languages » PHP » PHP RSS feed display weird characters!


PHP RSS feed display weird characters!

Reply
  #1 (permalink)  
Old 08-09-07, 12:03 PM
katwright katwright is offline
Newbie Coder
 
Join Date: Jun 2007
Location: New York
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation PHP RSS feed display weird characters!

I have an shtml page to display php rss feed. I have uploaded everything to the right directory the code etc. Permissions set to 777. I have SSI on the right spot.
But when i try to view to rss feed that is what i get:������10rĉgrFhI[${mL NowA)sO4ưЕ'gu ]r4,ÑY8 +AE2n"g<)unoSIj]ymjw)i ���˱����  l۶m۶m۶m۶��˱����  l۶m۶m۶m۶��˱����  l۶m۶m۶m۶��˱����  l۶m۶m۶m۶��˱����

This is killing me for 3 weeks already. Why is it happening ?
Please help !
Reply With Quote
  #2 (permalink)  
Old 08-09-07, 12:22 PM
mab's Avatar
mab mab is offline
Community VIP
 
Join Date: Oct 2005
Location: Denver, Co. USA
Posts: 2,674
Thanks: 0
Thanked 0 Times in 0 Posts
You would need to post your code for anyone in a forum to have a chance of telling you why it is not working.

You might also want to take a look at some existing RSS display scripts - http://www.dynamicdrive.com/dynamicindex18/index.html
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???
Reply With Quote
  #3 (permalink)  
Old 08-09-07, 01:41 PM
katwright katwright is offline
Newbie Coder
 
Join Date: Jun 2007
Location: New York
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
my page is shtml so a simple ssi should work. here it is anyway:

<!--#include virtual="/magicrssforblogs.php?descLen=70&max=5&url=http://graphics8.nytimes.com/services/xml/rss/nyt/Technology.xml" -->
Reply With Quote
  #4 (permalink)  
Old 08-09-07, 01:49 PM
fyrestrtr fyrestrtr is offline
Wannabe Coder
 
Join Date: Nov 2003
Posts: 191
Thanks: 0
Thanked 0 Times in 0 Posts
The encoding of the feed differs from the encoding of your page.
__________________
Find me at WHT
Reply With Quote
  #5 (permalink)  
Old 08-09-07, 03:00 PM
katwright katwright is offline
Newbie Coder
 
Join Date: Jun 2007
Location: New York
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Could you be a little more specific? What I need to change and where?
Reply With Quote
  #6 (permalink)  
Old 08-10-07, 06:31 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
the encoding of the rss feed is UTF-8:
xml Code:
  1. <?xml version="1.0" encoding="UTF-8"?>
You have to check the charset encoding of your page (probably ISO-8859-1). You have to change this to UTF-8, or convert the rss feed to ISO-8859-1
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
rss feed automator pkcidstudio Script Requests 2 08-29-06 04:40 PM
Rss Feed naissa PHP 3 09-17-05 12:07 AM
911 Heroes RSS feed websmart Website Reviews 2 03-03-05 12:18 PM
Making an RSS news feed Merovingian PHP 4 09-30-04 09:14 AM
PHP with a 'JavaScript-ish' Image Display Cypris PHP 1 07-03-04 03:05 AM


All times are GMT -5. The time now is 06:08 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.