2 ms·
> Go, Dart, Rust and Zig all return to single byte encodings In Dart, Strings are UTF-16 because that's what they are in JavaScript. https://www.dartlang.org/
by markdog12 8y ago
> Go, Dart, Rust and Zig all return to single byte encodings
In Dart, Strings are UTF-16 because that's what they are in JavaScript.
https://www.dartlang.org/guides/language/language-tour#strings https://www.dartlang.org/guides/language/language-tour#strin...
"A Dart string is a sequence of UTF-16 code units"
You can get them as "runes": https://www.dartlang.org/guides/language/language-tour#runes https://www.dartlang.org/guides/language/language-tour#runes