News for hackers. Stuff that matters.
Re:Ruby 1.9 made me remember how I hate the concept of encod... by jamiecobbett on Friday May 14, 2010 @06:18AM (#1346987)
In a sentence, Ruby 1.8 Strings are just a set of bytes, so methods like length count the number of bytes, Ruby 1.9 Strings are a set of characters, so length counts characters. This makes a difference when you have multi-byte characters, and want an accurate length, a correct split, reverse etc.

I found this series of articles well worth the time to read and understand: http://blog.grayproductions.net/articles/understanding_m17n

There are no comments on this comment yet.