This post originated from an RSS feed registered with Ruby Buzz
by Red Handed.
Original Post: UTF-8 Plugin for Rails, Fine for Ruby 1.8
Feed Title: RedHanded
Feed URL: http://redhanded.hobix.com/index.xml
Feed Description: sneaking Ruby through the system
Here’s the story thus far. Ruby has no Unicode support in 1.8 (except for Regexps), but it is forthcoming and Matz has stated his intentions. In the meantime, there’s been a quiet work to scrape up Unicode-aware String classes.
Today, Manfred Stienstra has lobbed a bunch of details on using the new UTF-8 encoding plugin for Rails. You can certainly use just the String class extensions in any other traditional Ruby stuff.
By creating this plugin we havenât resolved all our problems. One of the biggest problems is that we can only process UTF-8 encoded strings. [...] Sure, there are solutions like iconv to re-encode this data, but life would be a lot simpler if we didnât have to think about this.
This plugin by Julian Tarkhanov does require the Unicode library.