length_bytes
Returns the length of a string in bytes.
Description
The length_bytes
function returns the byte length of the x
string.
Examples
Get the byte length of a string
For ASCII strings, the byte length is the same as the number of characters:
For Unicode, this may not be the case:
See Also
length
, length_chars