#1  
Old 28th May 2008, 11:49
melat0nin melat0nin is offline
Junior Member
 
Join Date: May 2008
Posts: 9
Thanks: 2
Thanked 0 Times in 0 Posts
Question Facebook RSS odd symbol

Hi all

I think there might be a problem in the Facebook RSS feed HOWTO with regard to character encoding.

In my RSS feed I have pound signs (), and they appear in facebook as a question mark (?) on top of a black diamond - �

When I view the RSS feed in Google Reader, the pound sign displays properly - so I'm assuming the problem is not with the data feed itself but with the way Magpie/Facebook API interprets the data.

Any ideas why this is and how it can be fixed?

Last edited by melat0nin; 28th May 2008 at 11:52.
Reply With Quote
Sponsored Links
  #2  
Old 28th May 2008, 18:03
melat0nin melat0nin is offline
Junior Member
 
Join Date: May 2008
Posts: 9
Thanks: 2
Thanked 0 Times in 0 Posts
Default

When i run the feed through the feed validator (www.feedvalidator.org) I get this error:

"Your feed appears to be encoded as "UTF-8", but your server is reporting "US-ASCII""

which I presume is the root of the problem. The help file here (http://feedvalidator.org/docs/warnin...gMismatch.html) suggests there's a problem with the HTTP headers, but it doesn't actually explain where the change should be made.

Anyone got any ideas?
Reply With Quote
  #3  
Old 29th May 2008, 17:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

You can try to set
Code:
 AddDefaultCharset utf-8
in your Apache configuration.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
melat0nin (2nd June 2008)
  #4  
Old 2nd June 2008, 09:24
melat0nin melat0nin is offline
Junior Member
 
Join Date: May 2008
Posts: 9
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
You can try to set
Code:
 AddDefaultCharset utf-8
in your Apache configuration.
Falko,

Many thanks for the suggestion, but it hasn't worked. The RSS feed seems fine though, I can read it in Google reader without any weird symbols, so it's as though the problem is with the intermediary (i.e. MagPie/Facebook) steps.

Any other thoughts?
Reply With Quote
  #5  
Old 3rd June 2008, 09:48
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

You could try this in your PHP scripts:
PHP Code:
ini_set('default_charset''UTF-8');
setlocale(LC_ALL'C'); 
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 3rd June 2008, 09:56
melat0nin melat0nin is offline
Junior Member
 
Join Date: May 2008
Posts: 9
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
You could try this in your PHP scripts:
PHP Code:
ini_set('default_charset''UTF-8');
setlocale(LC_ALL'C'); 
Would that be in rss.php or conf.php or what?
Reply With Quote
  #7  
Old 4th June 2008, 18:41
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Put it in conf.php - if I remember right, that file is included in all other PHP files.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 6th June 2008, 17:13
melat0nin melat0nin is offline
Junior Member
 
Join Date: May 2008
Posts: 9
Thanks: 2
Thanked 0 Times in 0 Posts
 
Default

I'm afraid that doesn't appear to have worked either, and now I'm getting this error at the bottom of my feed on the application page (but not on the profile page):

Code:
Errors while loading page from application
Parse errors:

FBML Error (line 26): unknown tag "br..."
Reply With Quote
Reply

Bookmarks

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Facebook RSS feed app invite page deprecated godrox HOWTO-Related Questions 16 29th January 2010 07:37
Compile Kernel 2.6 under Debian Sarge falko Kernel Questions 117 28th September 2009 13:03
Facebook RSS truncate item? melat0nin HOWTO-Related Questions 4 29th May 2008 18:28
Facebook RSS reader app - error!? parakeet HOWTO-Related Questions 1 12th December 2007 12:05
Facebook RSS PubDate raw HOWTO-Related Questions 1 30th October 2007 17:53


All times are GMT +2. The time now is 18:55.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.