Is this what I want?
Probably. The problem is that it depends on one important thing:
Whatever in the world do you want it for, anyway?
I cannot ever remember needing it myself: dealing with low-level bytes instead of logical characters is nearly always the wrong way to go about matters.
It’s quite possible that there might be a better approach you just don’t know about.
In reply to Re: Best Way to Get Length of UTF-8 String in Bytes?
by tchrist
in thread Best Way to Get Length of UTF-8 String in Bytes?
by Jim
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |