RosettaCodeData/Task/String-length/Racket/string-length-3.rkt
Ingy döt Net 6f050a029e update
2013-06-05 21:47:54 +00:00

2 lines
107 B
Racket

-> (printf "str has ~a bytes in utf-8" (bytes-length (string->bytes/utf-8 str)))
str has 14 bytes in utf-8