From: Austin Ziegler Date: 2007-08-26T04:14:17+09:00 Subject: Re: String#length not working properly in Ruby 1.9 On 8/25/07, Yukihiro Matsumoto wrote: > |If I do this, though: > | > | s = File.readlines("foo") > | > |How do I tell Ruby what the encoding of the string is? s.encoding = > |'utf-8'? s.encoding = 'raw'? > I need to add optional argument for those methods to specify encoding > for reading files. So, can a string's encoding be changed once it's initially set, or will it be set only by specifying the encoding on read or write? -austin -- Austin Ziegler * halostatue@gmail.com * http://www.halostatue.ca/ * austin@halostatue.ca * http://www.halostatue.ca/feed/ * austin@zieglers.ca