Convert Greek Unicode strings to "greeklish" in ruby
After digging around Ruby's Unicode handling (almost none, at least in 1.8) I found a way to transform Greek strings into the latin equivalents (also know as "greek-lish"). Here's a snippet which adds two methods on the String class: "greeklish" and the banged version "greeklish!". To use it you'll need RubyGems and ActiveSupport (if you have rails these are already included).
There it goes (you won't be able to see the code from your feedreader probably - sorry for that :/ ):
touche! you just saved me some time, thanx.
kleas said...
November 15, 2008 5:42 PM