Select to view content in your preferred language

GeoRssLayer encodeing

1301
3
04-04-2011 08:35 AM
DarellStoick
Occasional Contributor
encoding="ISO-8859-1"

Running your GeoRss example from the Silverlight API (http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#GeoRssSimple) with a url like http://www.prh.noaa.gov/ptwc/feeds/ptwc_rss_hawaii.xml

causes an error. Any suggestions for RSS Feeds with encoding="ISO-8859-1"?

Thanks
Darell
0 Kudos
3 Replies
DominiqueBroux
Esri Frequent Contributor
Unfortunately Silverlight doesn't support ISO-8951-1 encoding.

One option might to manage the encoding conversion by yourself by modifying the GeoRss code provided here : http://esrisilverlight.codeplex.com/
In a first time you could force the encoding to UTF-8 and check if the result is aceptable or not.
0 Kudos
DarellStoick
Occasional Contributor
It appears your GeoRssLayer can not handle html tags.

See: http://volcanoes.usgs.gov/rss/vhpcaprss.xml

If the <b> </b> tags are removed it appears to work.

If you could expand your encoding and allow html tags this control could be useful. At this point we are finding it quite difficult to find live real world feeds that actually work.
0 Kudos
DominiqueBroux
Esri Frequent Contributor
It looks like the html tags should be encoded e.g. '&gt;b&lt;' instead of '<b>'.

With your URL, the following feed validator is complaining at the same line than the georsslayer:
http://feedvalidator.org/check.cgi?url=http%3A%2F%2Fvolcanoes.usgs.gov%2Frss%2Fvhpcaprss.xml
0 Kudos