stri_numbytes(letters)
stri_numbytes(c('abc', '123', '\u0105\u0104'))
## Not run: ------------------------------------
# # this used to fail on Windows, as there was no native support for 4-bytes
# # Unicode characters; see, however, stri_escape_unicode():
# stri_numbytes('\U7fffffff') # compare stri_length('\U7fffffff')
## ---------------------------------------------
Run the code above in your browser using DataLab