« Bugfix: MetaWebLogAPI now accepts content larger than one segment (>64kB) | Main| Enhance national language character support in MetaWebLogAPI »

Enhancement: Allow to set encoding for RSS output

Tags: Enhancement RSS

The agent  (AGNT - Stories RSS Feed)|stories.xml uses the script library RenderEngine.RSS to render RSS feeds. Previously this rendered the stories.xml  with UTF-8 encoding. English speaking blogs don't see any problems with the encoding I believe. However, my Norwegian blog had some issues with problematic encoding as it wouldn't accept Norwegian characters. I know that somehow this should probably be transparent if you have all Web server settings etc properly aligned. I have however never been able to align all these settings. I have therefore added a possibility to override the UTF-8 encoding in the Blog Configuration's RSS section, like this;

A picture named M2

This makes it possible to render the RSS properly no matter the Domino server settings

This change involve the Blog Configuration document as stated above. The field cfg_rss_RSSEncoding may or may not contain the encoding. If not present, the default value will be UTF-8. In addition I have several changes in the script library RenderEngine.RSS.  First I have defined a global variable RSSEncoding,  which is set in the initializeRenderEngine function, like this;

A picture named M2

Then several places in RenderEngine.RSS has changes like the one below;

A picture named M3

Calendar

Search Site

Tag Cloud

Domino BlogSphere
Version 3.0.2

A Code Snippit

The Home URL of this db is http://dev.blogsphere.net/blogsphere/bsphere3.nsf