keithc-ca commented on PR #194: URL: https://github.com/apache/ant/pull/194#issuecomment-1329179830
That's an interesting idea, but it has the potential to misidentify the end of a multi-byte encoding. For example, `"Ā!"` = `"\u0100!"` is encoded by UTF16 as { 1, 0, 0, 33 }. The null sequence would be found at offset 1 so only { 1 } would be given to the decoder resulting in a `MalformedInputException`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org