Jump to content

UTF-8 encode and decode: Difference between revisions

(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
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.