-
Fix to problem displaying RSS feed with accented characters
1) Script Title: Advance RSS Ticker (Ajax Invocation)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ajax/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.
-
-
Thanks for sharing. Personally I've never really looked into the issue, so can't confirm if what you're posting will work for everyone. Nonetheless, it seems it should at least work for some others too.
Tagged this thread.
DD Admin
-
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks