Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - RSS Invalid Character Problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

RSS Invalid Character Problem

 Post Reply Post Reply Page  <12
Author
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2006 at 10:58am
Your link is working fine in my copy of IE now, so it seems in version 8 full this problem has been solved.

You may have some issues with old posts for a while till they are no longer part of the RSS Feed.

Although in IE is does display a square symbol as quotes are changed to &#146; I have changed this for the next version to &#039; which also gets rid of the square block issue in IE and displays quote correctly in IE
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2006 at 11:01am
Originally posted by neil.carter neil.carter wrote:

Wistex is correct - if you change the encoding of the rss feed to ISO-8859-1 you no longer get the error as you can see http://www.bhpc.org.uk/forum8/RSS_topic_feed.asp.
 
Presumably this is because this is how its encoded in the database.


It seems to on your forum, but if you try and use a space as the separator when using ISO-8859-1 it displays '?' in between dates, if you use UTF-8 it doesn't.

This is one of the biggest issues with designing this type of software is also making it generic enough to run on so many different systems with so many different setups.
Back to Top
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2006 at 2:35pm
Yes, I bet it had to be a pain to get to work for everybody.  The problem is you can tell it how you want the web page encoded (UTF-8) for example, but when someone pastes something from their Word Processor or another web page that is encoded differently, I don't think what gets saved in the database is UTF-8.  It's whatever was passed to the database.

In version 7.x of WWF, I had to change WWF to display in ISO-8859-1 because of the problem of characters not showing up correctly.  Almost all my users use ISO-8859-1, and the headers and footers ASP code is in ISO-8859-1 as well. 

What was weird is IE 6 displayed the forums fine, FireFox 1.x (if I recall) displayed it fine, but FireFox 1.5x was screwing up the page.

What I in my articles RSS feed did that helped was surround the description content with a <![CDATE[     ]] tag, which prevents newsreaders from chocking on characters that are not valid in XML. 

http://www.caribbeanchoice.com/rss.asp

Response.Write "<description>"  & vbCrlf 
Response.Write "<![CDATA[" & vbCrlf

IF rst("ContentAuthorDisplayName").Value <> "" THEN
    Response.Write "By " & rst("ContentAuthorDisplayName").Value    
END IF

IF rst("ContentSubHeadline").Value <> "" THEN
Response.Write "<p>" & rst("ContentSubHeadline").Value
END IF

IF rst("ContentExcerpt").Value <> "" AND rst("ContentSubHeadline").Value <> rst("ContentExcerpt").Value THEN
    Response.Write "<p>" & rst("ContentExcerpt").Value
END IF

IF rst("ContentExcerpt").Value = "" THEN
    If Len(rst("ContentContent").Value) > 500 Then
    dot = "... <a href=" & LinkURL & ">Read More...</a>"
    Else
    dot = ""
    End If
                  Response.Write Left(rst("ContentContent").Value,500) & "" & dot
END IF

Response.Write "]]>" & vbCrlf
Response.Write "</description>" & vbCrlf
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2006 at 12:43pm
The description tag is surrounded with <![CDATE[     ]] as it is the only way to display HTML code in an RSS Feed
Back to Top
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post Posted: 17 April 2006 at 6:39pm

Must be the encoding then.

Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.