InstantASP Community Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        


RSS feed - not UTF-8 compliant Expand / Collapse
Author
Message
Posted 27/06/2005 17:19:11


Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Customers
Last Login: 26/03/2007 05:11:10
Posts: 46, Visits: 152
Character such as "é à ç î" are saved in the database and showed in the message board but screwed in the RSS feeding.

Those character are pretty essential for any non-english language.

There is an easy way to fix it, [code from RC2]

File RessFeed.vb line 417: in Public Shared Sub CreateRssFeed(ByVal RssFeed As InstantASP.Common.Business.RssFeed)

Dim XmlTextWriter As System.Xml.XmlTextWriter = New System.Xml.XmlTextWriter(RssFeed.OutputStream, System.Text.Encoding.ASCII)

Should be written as

Dim XmlTextWriter As System.Xml.XmlTextWriter = New System.Xml.XmlTextWriter(RssFeed.OutputStream, System.Text.Encoding.UTF8)

and the RSS will display all accent properly.

Thanks.

ps. I love this editor
 

Running InstantASP forum with many code change.

Post #7442
Posted 27/06/2005 17:21:04


Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Customers
Last Login: 26/03/2007 05:11:10
Posts: 46, Visits: 152
Here is actually what my message look's like in the RSS feed.

- <item>
  <title>RSS feed - not UTF-8 compliant</title>
  <link>http://support.instantasp.co.uk/Topic7442-37-1.aspx</link>
  <description>Character such as "? ? ? ?" are saved in the database and showed in the message board but screwed in the RSS feeding. </P><P>Those character are pretty essential for any non-english language.</P><P>There is an easy way to fix it, [code from RC2]</P><P>File <U>RessFeed.vb line 417</U>: in Public Shared Sub CreateRssFeed(ByVal RssFeed As InstantASP.Common.Business.RssFeed)</P><P><div style="margin:0px; padding:6px; border:1px #C8DBED solid; width:100%; height:250px; overflow:auto;"><font face="Courier New" Size="2"><i>Dim XmlTextWriter As System.Xml.XmlTextWriter = New System.Xml.XmlTextWriter(RssFeed.OutputStream, System.Text.Encoding.ASCII)</i></font></div></P><P><STRONG><FONT color=#ff1111>Should be written as</FONT></STRONG></P><P><div style="margin:0px; padding:6px; border:1px #C8DBED solid; width:100%; height:250px; overflow:auto;"><font face="Courier New" Size="2"><i>Dim XmlTextWriter As System.Xml.XmlTextWriter = New System.Xml.XmlTextWriter(RssFeed.OutputStream, <FONT style="BACKGROUND-COLOR: #dddd55">System.Text.Encoding.UTF8</FONT><BR></i></font></div></P><P>and the RSS will display all accent properly.</P><P>Thanks.</P><P>ps. I love this editor <img align="absmiddle" src="http://support.instantasp.co.uk/Skins/Classic/Images/EmotIcons/Wink.gif" border="0" title="Wink"><BR></description>
  <pubDate>Mon, 27 Jun 2005 17:19:11 GMT</pubDate>
  <dc:creator>Zyo</dc:creator>
  </item>


Running InstantASP forum with many code change.
Post #7443
Posted 01/07/2005 09:42:56


IF.NET 4.2 Coming Soon

IF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming Soon

Group: Administrators
Last Login: 2 days ago @ 16:29:04
Posts: 1,956, Visits: 3,018
Many thanks Zyo, this has since been updated and will be available with RC4


Kindest Regards,

Ryan Healey
Director / Developer

Explore our products...
http://demos.instantasp.co.uk/

Post #7517
« Prev Topic | Next Topic »

Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ryan Healey, Mark Christianson, Bare, James Trott

Permissions Expand / Collapse

All times are GMT, Time now is 3:28am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 13 queries. Compression Disabled.
Home | Products | Purchase | Support | Company | Contact Us
Privacy Statement | © 1999-2007 InstantASP Limited. All Rights Reserved.