stri_numbytes(letters)
stri_numbytes(c('abc', '123', '\u0105\u0104'))
if (FALSE) {
# this used to fail on Windows, where there were no native support
# for 4-bytes Unicode characters; see, however, stri_unescape_unicode():
stri_numbytes('\U001F600') # compare stri_length('\U001F600')
}
Run the code above in your browser using DataLab