Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The chars proxy enables you to work transparently with multibyte encodings in the Ruby String class without having extensive knowledge about encoding.
A Chars object accepts a string upon initialization and proxies String methods in an encoding-safe manner. All the normal String methods are proxied through the Chars object, and can be accessed through the mb_chars method. Methods that would normally return a String object now return a Chars object so that methods can be chained together safely.