From: Daniel Schierbeck Date: 2006-06-15T02:59:16+09:00 Subject: Re: A plan for another unicode string hack Dae San Hwang wrote: > String literals will act as byte buffers, just as they used to. However, > when creating string object by using constructor, you can optionally > specify the encoding of the input string. > > String.new("\352\260\200", "utf-8") I'd like to have a different interface, using named parameters. String.new("\352\260\200", encoding: "utf-8") or String.new("\352\260\200", :encoding => "utf-8") That way it's easier to extend String later on. Cheers, Daniel