paulirwin opened a new issue, #1024: URL: https://github.com/apache/lucenenet/issues/1024
> I also noticed when searching for `IndexOutOfRangeException` that `UTF8toUTF16` can throw it, also. This is unusual to have to deal with, so we should change this method to `TryUTF8toUTF16` so we can eliminate this exception that is clearly exclusively meant for control flow when the UTF8 format is invalid. It is caught in several places to do a fallback, and we should fix this. Note that we will most likely be converting the `byte[]` overload to use `ReadOnlySpan<byte>` and getting rid of the `offset` and `length` parameters. _Originally posted by @NightOwl888 in https://github.com/apache/lucenenet/pull/1018#discussion_r1842253910_ -- 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...@lucenenet.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org