[encoding] "13.2.2 iso-2022-jp encoder" (#15)

https://encoding.spec.whatwg.org/#iso-2022-jp-encoder

> 13\.2\.2 iso\-2022\-jp encoder

Suppose the input unicode string is A, B, ESC, $, B, 1, 2.

In this case, resulting encoded bytes will be A, B, ESC, $, B, 1, 2, according to the current spec.

The byte sequence can be, when decoded again, a unicode string A, B, 憶, which is apparently different from the original input unicode string.

The point I am making here is that, when encoding, ESC chars in the input unicode string should be specially handled (removed or replaced with something else). Or am I misunderstanding something?

Thanks,
Takeshi

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/encoding/issues/15

Received on Friday, 13 November 2015 06:41:40 UTC