RosettaCodeData/Task/String-length/C-sharp/string-length-3.cs

2 lines
52 B
C#

int utf8ByteLength = Encoding.UTF8.GetByteCount(s);