Does anyone know if the standard Java library (any version) provides a means of calculating the length of the binary encoding of a string (specifically UTF-8 in this case) w
Using Guava's Utf8:
Utf8.encodedLength("some really long string")