On Wed, May 24, 2017 at 10:11 AM, Henri Sivonen <[email protected]> wrote: > It seems to me that attribute values would be the only case where a > conversion from UTF-8 to UTF-16 would be needed all the time, and that > conversion can be fast for ASCII, which is what attribute values > mostly are.
Moreover, this conversion doesn't need to have the cost of converting potentially-bogus UTF-8 to UTF-16 but only the cost of converting guaranteed-valid UTF-8 to UTF-16, because UTF-8 validity was already guaranteed earlier. -- Henri Sivonen [email protected] https://hsivonen.fi/ _______________________________________________ dev-platform mailing list [email protected] https://lists.mozilla.org/listinfo/dev-platform

