Title
a

aimozg

02/23/2017, 8:50 PM
I need to convert
TypedArray
with UTF-8 bytes to
String
, and JS solution is
decodeURIComponent(escape(String.fromCharCode.apply(null, typedArray)))
(or not-so-supported
new TextDecoder().decode(typedArray)
)
b

bashor

02/27/2017, 7:30 PM
aimozg:
fun Int16Array.toString() = js("String").fromCharCode.apply(null, this)