Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 14 Jan 2011, 12:01
taylor_smith taylor_smith is offline
 
Join Date: Oct 2010
RSS HTML to BBcode: Replacing Spaces with Asterisks?

Greetings. I am trying to use the RSS feature, but I have been encountering a problem. At some point between pulling html from an RSS feed and converting the HTML to BBcode, some spaces are being converted to asterisks. For example, when the RSS feed pulled:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

it showed up as follows:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

As a result, my feeds are showing up with a bunch of random asterisks.

Does anyone know why this his happening and how to fix it?

Thanks in advance!
Reply With Quote
  #2  
Old 14 Jan 2011, 14:12
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
I don't know, but I have a theory. Maybe some part of the process sees a "non-breaking space" character as some sort of special character that it doesn't know how to represent.
Reply With Quote
  #3  
Old 14 Jan 2011, 20:12
taylor_smith taylor_smith is offline
 
Join Date: Oct 2010
Hmm. I'm not sure. This is happening in both vB3.7 and vB4.x. Any way to fix it?

The feed is here: http://stratics.com/frontpage/feed.
Reply With Quote
  #4  
Old 14 Jan 2011, 21:23
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Yeah, looks like those places with asterisks are hex C2A0 in the feed, which I think is the UTF-8 encoding for a no-break space. So it kind of looks like whatever you're using to convert it to a post isn't decoding it right, or else it's deciding to display that character as an asterisk for some reason).

(I should say that I don't know very much about character encoding and I had to google it to figure this out, so I could be wrong).
Reply With Quote
Reply



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

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


New To Site? Need Help?

All times are GMT. The time now is 14:16.

Layout Options | Width: Wide Color: