Actions
Bug #1836
closedCan change encoding on frozen String
Description
=begin
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
=end
Actions
Like0
Like0Like0Like0Like0Like0