M
Marcos
Given a(n array of) numeric value(s) representing (a) Unicode code
point(s), how do I get a string of the indicated character(s)?
Integer#chr doesn't seem to know about encodings; it just outputs the
byte value (and fails for values that don't fit in a byte).
Array#pack('U*') yields a UTF-8 string, but it's marked as
ASCII-8BIT.
Is there a preferred method?
point(s), how do I get a string of the indicated character(s)?
Integer#chr doesn't seem to know about encodings; it just outputs the
byte value (and fails for values that don't fit in a byte).
Array#pack('U*') yields a UTF-8 string, but it's marked as
ASCII-8BIT.
Is there a preferred method?