vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Help with wrong characters being displayed (https://vborg.vbsupport.ru/showthread.php?t=316942)

Paddy Murphy 01-26-2015 04:58 PM

Help with wrong characters being displayed
 
Hi,

I have numerous characters coming through to my forum via RSS Feed Manager that are wrong.

For example;

' comes through as ' (I actually fixed this one by placing ' in the Replacement Variables)

But please help with these;

£ comes through as ?
“£ comes through as ??
“ comes through as ?

They're just ones I've noticed.

Is there a work around for this issue?

Thank you

Lynne 01-26-2015 05:23 PM

If you look at the feed and see the page source, is there an encoding listed? And is it the same encoding used on your site?

Paddy Murphy 01-26-2015 06:54 PM

Hi Lynne,

Thanks for the reply.

I went into great detail about this issue on the vBulletin forum here.

Would you mind taking a look there to see the issues I've been having please? I hope it will give you a better insight to my issue, if not please let me know what other information you need. I've since gotten new Google Alert Feed url's.

Here's one for example - https://www.google.ie/alerts/feeds/0...23403621179732

I'm then putting these feeds through feedburner and they are being posted here on my forum.

Regards

Lynne 01-26-2015 10:15 PM

My 4.2.2 forum doesn't like that feed at all. I then went to the google alerts page and got a new RSS feed URL, and my site doesn't like it either. So, it may just be that those feeds can't be read by vbulletin.

Paddy Murphy 01-26-2015 11:08 PM

I don't use that feed directly. I put that feed through feedburner to give me this - http://feeds.feedburner.com/GoogleAlert-Cannabis

I just noticed, the error characters in this link (shown as squares) are the ones that are showing on my forum as ? (a question mark).

Lynne 01-27-2015 04:54 PM

So it isn't just the characters from the feed showing up wrong, it is those particular characters being used anywhere on your site that are showing up wrong?

In Language Manager > edit main language > what is your Language Code and HTML Character Set?

And in MySQL, what is the collation of the vbulletin tables?

Paddy Murphy 01-27-2015 05:29 PM

Well in this feed that I'm using for example (http://feeds.feedburner.com/GoogleAlert-Cannabis) some characters like the € (Euro symbol) is shown as a square. And when it then gets posted to my forum via RSS manager, the square is displayed as a ? (question mark). This happens with other characters to like " also.

Language Code = en

HTML Character Set = ISO-8859-1

In phpMyAdmin most of my database tables are set to latin1_swedish_ci

I changed some of the tables (post, thread etc) to utf8_general_ci to see if this would fix the issue but it did not.

Lynne 01-27-2015 11:12 PM

If it is showing incorrectly in the feed, then it certainly isn't going to correct itself in a post on your forum.

I would strongly recommend NOT mixing your table collations like that. You are going to cause yourself problems (not to mention that for utf8_general_ci, it is best to have the HTML Character Set be UTF-8).

Paddy Murphy 01-28-2015 10:39 AM

Quote:

Originally Posted by Lynne (Post 2534915)
If it is showing incorrectly in the feed, then it certainly isn't going to correct itself in a post on your forum.

Ok. I think it's time to seek an alternative to Google Alerts. If I use the Google Alert (https://www.google.ie/alerts/feeds/0...98089616524864) directly I get this error;

Code:

XML Error: not well-formed (invalid token) at line 1
Quote:

Originally Posted by Lynne (Post 2534915)
I would strongly recommend NOT mixing your table collations like that. You are going to cause yourself problems (not to mention that for utf8_general_ci, it is best to have the HTML Character Set be UTF-8).

Ok. How do I change them all to utf8_general_ci ?

Thanks

Lynne 01-28-2015 10:47 PM

I thought you had already changed some table collations?

Step 6 here explains it - http://www.vbulletin.com/forum/forum...ight=collation

NOTE: It is very very very important to make full database backups before proceeding if you are ever manually making any changes to your database.


All times are GMT. The time now is 05:32 AM.

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.02412 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete