vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   RSS HTML to BBcode: Replacing Spaces with Asterisks? (https://vborg.vbsupport.ru/showthread.php?t=257117)

taylor_smith 01-14-2011 11:01 AM

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:

Code:

<strong>SWG Galactic Civil War and Player City Statistics- 14th of December 2010</strong>
it showed up as follows:

Code:

<strong>SWG Galactic Civil War and Player City Statistics-*14th*of*December 2010</strong>
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!

kh99 01-14-2011 01:12 PM

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.

taylor_smith 01-14-2011 07:12 PM

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.

kh99 01-14-2011 08:23 PM

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).


All times are GMT. The time now is 03:47 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00937 seconds
  • Memory Usage 1,713KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete