From: James Gray Date: 2009-05-04T12:13:10+09:00 Subject: Re: String problem On May 3, 2009, at 5:59 PM, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: String problem" > on Sun, 3 May 2009 20:23:49 +0900, 7stud -- > writes: > > |Corrections: > | > |In 1.8.* versions, ruby doesn't recognize unicode, where characters > [may > |be] > |represented by multiple bytes. ruby thinks everything [is] an ascii > |character where characters are represented by one byte. > > More Corrections: > > In 1.8.* versions, string methods of ruby doesn't recognize multi-byte > characters. ruby thinks everything is a sequence of bytes. Regular > expressions in 1.8.* recognize UTF-8, EUC-JP, and Shift_JIS. So you > can handle Unicode strings by using regular expressions. And those interested in how all that works may find this series on my blog helpful: http://blog.grayproductions.net/articles/understanding_m17n James Edward Gray II