encode!

str.encode!(encoding [, options] ) â str
str.encode!(dst_encoding, src_encoding [, options] ) â str
Instance Public methods

The first form transcodes the contents of str from str.encoding to encoding. The second form transcodes the contents of str from src_encoding to dst_encoding. The options Hash gives details for conversion. See #encode for details. Returns the string even if no changes were made.

doc_ruby_on_rails
2015-05-15 16:09:51
Comments
Leave a Comment

Please login to continue.