<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Web Wiz Support and Community Forums : Fix for RSS feeds &amp; ISO-8859-1 encoding</title>
  <link>https://forums.webwiz.net/</link>
  <description><![CDATA[This is an XML content feed of; Web Wiz Support and Community Forums : Web Wiz Forums : Fix for RSS feeds &amp; ISO-8859-1 encoding]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 06 Apr 2026 23:01:12 +0000</pubDate>
  <lastBuildDate>Mon, 20 Aug 2007 18:19:34 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.08</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forums.webwiz.net/RSS_post_feed.asp?TID=24226</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Web Wiz Support and Community Forums]]></title>
   <url>https://forums.webwiz.net/forum_images/web_wiz_forums.png</url>
   <link>https://forums.webwiz.net/</link>
  </image>
  <item>
   <title><![CDATA[Fix for RSS feeds &amp; ISO-8859-1 encoding : Hello,After upgrading my forum...]]></title>
   <link>https://forums.webwiz.net/fix-for-rss-feeds-iso88591-encoding_topic24226_post126726.html#126726</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=26866">Edy</a><br /><strong>Subject:</strong> 24226<br /><strong>Posted:</strong> 20&nbsp;August&nbsp;2007 at 6:19pm<br /><br />Hello,<br><br>After upgrading my forum from V7 to V9 I noticed that the RSS feeds did strange things with the 8-bit ASCII characters (those with numeric value greater than 127). The forum encoding is configured as ISO-8859-1 and the main language is spanish. The most noticeable problem was that the tilded letters such "á" were replaced by their capital equivalent, "Á". For instance, if the following word appeared in a post:<br><br>&nbsp;&nbsp;&nbsp; configuración<br><br>the RSS feed would show it this way:<br><br>&nbsp;&nbsp;&nbsp; configuraciÓn<br><br>After examining the RSS generation code I found the way for fixing it. Open the file <b>RSS_post_feed.asp</b> and locate the following code at the line 340:<br><br><table width="99%"><tr><td><pre class="BBcode">'Encode non ASCII characters that can crash RSS Feeds<br>For intRSSLoopCounter = 128 to 221<br>strSubject = Replace(strSubject, Chr(intRSSLoopCounter), "&amp;#" &amp; Trim(intRSSLoopCounter) &amp; ";", 1, -1, 1)<br>strMessage = Replace(strMessage, Chr(intRSSLoopCounter), "&amp;#" &amp; Trim(intRSSLoopCounter) &amp; ";", 1, -1, 1)<br>Next</pre></td></tr></table><br>Change the 221 to 255 and the last Replace function parameter from 1 to 0 in both lines:<br><br><table width="99%"><tr><td><pre class="BBcode">'Encode non ASCII characters that can crash RSS Feeds<br>For intRSSLoopCounter = 128 to <font color="#ff0000"><b>255</b></font><br>strSubject = Replace(strSubject, Chr(intRSSLoopCounter), "&amp;#" &amp; Trim(intRSSLoopCounter) &amp; ";", 1, -1, <font color="#ff0000"><b>0</b></font>)<br>strMessage = Replace(strMessage, Chr(intRSSLoopCounter), "&amp;#" &amp; Trim(intRSSLoopCounter) &amp; ";", 1, -1, <font color="#ff0000"><b>0</b></font>)<br>Next<br></pre></td></tr></table><br>Repeat the same at the files <b>RSS_topic_feed.asp</b> and <b>RSS_calendar_feed.asp</b>.<br><br>I don't know why the authors just replaced the characters until Chr(221) instead of Chr(255). The lowercase tilded letters are beyond the value 221, at least in the encoding ISO-8859-1. As uppercase tilded letters are below 221 and the Replace mode was textual (original parameter 1) then the original code found the lowercase letters and replaced them with the uppercase equivalents. <br><br>My changes extend the scope of the replace loop to the full 8-Bit ASCII range, and also perform a binary comparison (Replace parameter 0). So the lowercase tilded letters are properly replaced with their XML-safe equivalents. This works just perfect for me.<br><br>Hope this make sense. Maybe it should be consideered for the next forum version.<br>Best regards,<br><br>Edy<br>]]>
   </description>
   <pubDate>Mon, 20 Aug 2007 18:19:34 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/fix-for-rss-feeds-iso88591-encoding_topic24226_post126726.html#126726</guid>
  </item> 
 </channel>
</rss>