or use activesupport and do $ irb >> require 'activesupport' => true >> string = "hebrew string" => "hebrew string" >> string.mb_chars.reverse => "gnirts werbeh"
(ruby 1.9 supports different encodings but that might be an overkill) - Matt On Wed, Apr 8, 2009 at 10:11 PM, Patrick Crowley <[email protected]>wrote: > > > This fellow called me after posting. He has some Hebrew that he > > wants to reverse right-for-left so Illustrator will display it > > correctly. Word displays right to left, Illustrator does not. > > Here's a quick tutorial on using jcode: > http://ruphus.com/blog/2005/06/11/ruby-and-unicode/ > > That's pretty outdated, though. You might find a better way to > accomplish this using Ruby 1.9. > > -- Patrick > > > > --~--~---------~--~----~------------~-------~--~----~ SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby -~----------~----~----~----~------~----~------~--~---
