You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because nchar should have been called with type="byte" to get the actual byte length, not character length.
While we're at it, if encoding = NULL, you can choose "UTF-8" based on the value of Encoding(obj). This would be more faithful to the in-memory representation of the string in R.
The text was updated successfully, but these errors were encountered:
This is because
nchar
should have been called withtype="byte"
to get the actual byte length, not character length.While we're at it, if
encoding = NULL
, you can choose"UTF-8"
based on the value ofEncoding(obj)
. This would be more faithful to the in-memory representation of the string in R.The text was updated successfully, but these errors were encountered: