From: Brian Candler Date: 2009-07-30T17:06:06+09:00 Subject: [ruby-core:24609] [Bug #1836] Can change encoding on frozen String 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 => # >> ---------------------------------------- http://redmine.ruby-lang.org