method
u_unpack
v3.1.0 -
Show latest stable
- Class:
ActiveSupport::Multibyte::Unicode
u_unpack(string)public
Unpack the string at codepoints boundaries. Raises an EncodingError when the encoding of the string isn’t valid UTF-8.
Example:
Unicode.u_unpack('Café') # => [67, 97, 102, 233]