Anonymous user
UTF-8 encode and decode: Difference between revisions
→{{header|JavaScript}}
(Added JavaScript) |
|||
Line 447:
:( m===0xe0
&&0x9f<n&&n<0xc0
||m===0xed▼
&&0x7f<n&&n<0xa0▼
||0xe0<m&&m<0xed
&&0x7f<n&&n<0xc0
▲ ||m===0xed
▲ &&0x7f<n&&n<0xa0
||0xed<m&&m<0xf0
&&0x7f<n&&n<0xc0)
Line 519:
𝄞 U+01d11e [f0,9d,84,9e] [f0,9d,84,9e] [f0,9d,84,9e] U+01d11e
</pre>Note that the misalign there on the last line is caused by the string length of astral characters being 2 so the padding functions break.
=={{header|Kotlin}}==
<lang scala>// version 1.1.2
|