UTF-16 encoders are not part of the Web Platform. Therefore, it doesn't make sense to implement them in a Web-oriented encoding library that has the Encoding Standard as its conformance target. As a result, I intend not to add UTF-16 encoders to encoding-rs (https://github.com/hsivonen/encoding-rs).
As a result, once the time comes to replace uconv with encoding-rs (see https://groups.google.com/d/msg/mozilla.dev.platform/sefrg5Of8tw/_WK7Vtk9AAAJ ), UTF-16 encoders will get removed from the XUL platform as a side effect. Note: "Encoders" above means components that output a byte stream for interchange. It's always a bad idea to use UTF-16 for interchange. There's still going be support for conversions where the output is an application-internal sequence of char16_t. (Those are pretty vital to Gecko!) -- Henri Sivonen hsivo...@hsivonen.fi https://hsivonen.fi/ _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform