Bug #1836: Can change encoding on frozen String http://redmine.ruby-lang.org/issues/show/1836 Author: Brian Candler Status: Open, Priority: Normal ruby -v: ruby 1.9.2dev (2009-07-18 trunk 24186) [i686-linux] String#encode! lets you change the encoding on a frozen String, as long as the character sequence is unchanged by the operation. >> s = "hello" => "hello" >> s.freeze => "hello" >> s.encode!("ISO-8859-1") => "hello" >> s.encoding => #<Encoding:ISO-8859-1> >> ---------------------------------------- http://redmine.ruby-lang.org