vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Weird Characters in posts. (https://vborg.vbsupport.ru/showthread.php?t=313116)

viper357 07-21-2014 08:18 AM

Weird Characters in posts.
 
I'm starting to have an issue on my forum (3.8.5) whereby some posts are having certain characters being changed, things like ', ", - are being changed into this:
Quote:

***8220;Success is stumbling from failure to failure with no loss of enthusiasm.***8221;
***8213; Winston Churchill
Whereas it should be:
Quote:

"Success is stumbling from failure to failure with no loss of enthusiasm."
- Winston Churchill
But it's not happening to all posts, only some. I've been searching the net and reading on vb.com but it's above my understanding. I have picked up on what I think may be the problem, but I don't know, and that's the character setting? Here are some screenshots that I have taken after reading various threads on vb.com

Can anybody see anything wrong anywhere? Thanks. :)

This is one of the posts:

https://vborg.vbsupport.ru/external/2014/07/12.jpg

The settings on the first page at phpmyadmin

https://vborg.vbsupport.ru/external/2014/07/13.jpg

The collation column when I select my database in phpmyadmin

https://vborg.vbsupport.ru/external/2014/07/14.jpg

The Character set in vb admincp

https://vborg.vbsupport.ru/external/2014/07/15.jpg

Character set and collation from vb admincp

https://vborg.vbsupport.ru/external/2014/07/16.jpg

I don't really know what any of this all means so hoping someone can pick up on something that is incorrect?

For the time being I have had to use the Replacement Variable Manager to fix this, but I'd prefer to fix the issue properly, thank you. :)

kh99 07-21-2014 10:15 PM

Did you change them to *** at the beginning or did they appear like that? If they were &# instead of ***, then they'd be left and right double quote characters and I guess a long dash for 8213, and it would appear correctly. So maybe you have something changing &# to *** or something like that? Maybe check your censored words to see if you have anything like that in there.

Max Taxable 07-21-2014 11:16 PM

I assume this example is from a post that had copy/paste involved.

viper357 07-22-2014 03:32 PM

1 Attachment(s)
Quote:

Originally Posted by kh99 (Post 2507701)
Did you change them to *** at the beginning or did they appear like that? If they were &# instead of ***, then they'd be left and right double quote characters and I guess a long dash for 8213, and it would appear correctly. So maybe you have something changing &# to *** or something like that? Maybe check your censored words to see if you have anything like that in there.

Yes, just checked and I have &# as a censored word. I'm not sure why but I think that was due to the admin username being exploited?

Quote:

Originally Posted by Max Taxable (Post 2507709)
I assume this example is from a post that had copy/paste involved.

One of the posts, yes, but not all of the posts were copy and pasted, like this one for example, I assume it is supposed to be a ? instead of the characters?

viper357 07-22-2014 03:53 PM

More on this page - http://www.marineaquariumsa.com/hard...tml#post859313

I've removed the &# from the censored words list and rebuilt the post cache, but they still remain. Guess I'll wait a couple of days to see if it occurs again. Thanks for the tip.

Strange though how it's only on some posts and not all?

kh99 07-22-2014 04:09 PM

Quote:

Originally Posted by viper357 (Post 2507811)
More on this page - http://www.marineaquariumsa.com/hard...tml#post859313

I've removed the &# from the censored words list and rebuilt the post cache, but they still remain. Guess I'll wait a couple of days to see if it occurs again. Thanks for the tip.

Strange though how it's only on some posts and not all?

The censoring happens before the posts are saved, so it's permanent even if you change what's censored. The only way to fix the existing ones would be to edit the post.

It could be the reason that it only happens for some posts is that it would only happen if the post contained the html entity. If it contained a literal double quote or dash it wouldn't happen.

viper357 07-22-2014 07:26 PM

Makes sense, thank you. :)

Max Taxable 07-22-2014 09:18 PM

I'm a weird character myself, it's really the only reason I chimed in.:D


All times are GMT. The time now is 01:01 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.01097 seconds
  • Memory Usage 1,731KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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