Forum: Ruby on Rails UTF in RSS?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
3319ab6fb19fcf97c8a3d66b8a9b68bf?d=identicon&s=25 Josh on Rails (Guest)
on 2006-12-28 02:12
(Received via mailing list)
I'm trying to read from an external RSS feed and display the results
on my site, but I'm getting weird characters in places. This looks
like a charset mismatch (ie, the feed in question is utf-8, but I'm
not?), but I'm not sure how to fix it?

At the command prompt, mysql shows the appropriate character (ie,
fancy apostrophe, not binary or weirdness), but console shows a weird
binary-ish string, like "more evidence of the housing
market\342\200\231s deceleration". That makes me think the problem is
in Rails/Ruby somewhere?

Or: is there a way to strip this out or replace it during the RSS
parsing? I don't so much care whether I show the fancy quotes or not,
I just don't want the junk characters.

-- Josh
This topic is locked and can not be replied to.