From: Yukihiro Matsumoto Date: 2007-09-03T16:29:07+09:00 Subject: Re: String#length not working properly in Ruby 1.9 Hi, In message "Re: String#length not working properly in Ruby 1.9" on Sun, 2 Sep 2007 05:03:07 +0900, Florian Gross writes: |> str.encode("utf-8") # convert from str.encoding to utf-8 | |Hm, does this return a new string with the supplied encoding (non- |destructive behaviour) or does it change the encoding in-place? Just |wondering. String#encode method returns a new string with new encoding. We haven't decided to introduced destructive String#encoding= method. matz.