Fix issue with partial UTF-8 string (#6317)
Summary: It will cause JNI exception if we don't pass in UTF-8 string. Alternative 1 (this): wait until we have complete UTF-8 tokens. Alternative 2 (?): Fix this from runner layer Alternative 3 (no): Change the API to use uint8_t array, but if we want to display on app in real time, this is still an issue. Pull Request resolved: https://github.com/pytorch/executorch/pull/6317 Reviewed By: Riandy Differential Revision: D64580932 Pulled By: kirklandsign fbshipit-source-id: 341ea906097707fae0f97d32dea974ad44425083
H
Hansong Zhang committed
6b2a0825b6a5a235ebfd97a210d06706f966e0ed
Parent: 0eeea82
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
on 10/18/2024, 5:13:49 PM