utf8ToInt(x)
intToUtf8(x, multiple = FALSE)
0
to 0x10FFFF
.utf8ToInt
converts a length-one character string encoded in
UTF-8 to an integer vector of Unicode code points.intToUtf8
converts a numeric vector of Unicode code points
either to a single character string or a character vector of single
characters. (For a single character string 0
is silently
omitted: otherwise 0
is mapped to ""
. Non-integral
numeric values are truncated to integers.) The Encoding
is declared as "UTF-8"
.NA
inputs are mapped to NA
output.