Anonymous user
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 #
=={{header|Ruby}}==
|