robokev
09-22-2008, 03:31 AM
1) Script Title: Advance RSS Ticker (Ajax Invocation)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/rsstickerajax/index.htm
3) Describe problem: Accented characters in RSS feed where not displaying correctly. Neither were apostrophes, emdashes, or "smart quotes."
The problem turned out to be a disconnect between the encoding used for the RSS feed and the XML used by the ticker. The web site (based on Drupal) uses UTF-8 encoding throughout, including its RSS feeds.
The bridge.php script which parses the RSS feed into XML uses ISO-8859-1 encoding. Changing it to UTF-8 (line 44) resolved the issue.
I thought I'd post it here since it took me several hours to figure out what was going on, and maybe it will save others the pain.
Regards.
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/rsstickerajax/index.htm
3) Describe problem: Accented characters in RSS feed where not displaying correctly. Neither were apostrophes, emdashes, or "smart quotes."
The problem turned out to be a disconnect between the encoding used for the RSS feed and the XML used by the ticker. The web site (based on Drupal) uses UTF-8 encoding throughout, including its RSS feeds.
The bridge.php script which parses the RSS feed into XML uses ISO-8859-1 encoding. Changing it to UTF-8 (line 44) resolved the issue.
I thought I'd post it here since it took me several hours to figure out what was going on, and maybe it will save others the pain.
Regards.