The last byte is sometimes wrong. Currently, when we output the byte from the "nextChar" variable it can be a zero byte when there is no next character however a byte string may just have null byte at the end of the byte stream.
We can't just ignore the last byte being decoded because it could be a valid byte we need
The last byte is sometimes wrong. Currently, when we output the byte from the "nextChar" variable it can be a zero byte when there is no next character however a byte string may just have null byte at the end of the byte stream.
We can't just ignore the last byte being decoded because it could be a valid byte we need