I would like to get the number of bytes in a string using UTF-8 encoding without explicitly creating an array of bytes (because I don't need to use an array, just the number of bytes). Is it possible? My question is almost exactly this , but with C # instead of Java.
Thanks!
source share