← Reference

string-methods

Ruby string-methods reference.

String#encoding

Returns the Encoding object that represents the character encoding of the string.