Jump to content

String Byte Length: Difference between revisions

→‎{{header|Python}}: UTF-16: extra 2 bytes is probably Unicode BOM
(→‎{{header|Python}}: UTF-16: extra 2 bytes is probably Unicode BOM)
Line 271:
assert len(s) == 5
assert len(s.encode('UTF-8')) == 7
assert len(s.encode('UTF-16')) == 12 #XXX itThe shouldextra becharacter `10'is asprobably problema statementleading saysUnicode byte-order mark (BOM).
 
=={{header|Ruby}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.