You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's because of how UTF-16 surrogate pairs work. You need enough token groups to make up a full emoji.
If you'd like to decode token-by-token, use the decodeGenerator or decodeAsyncGenerator (if you have tokens flowing in asynchronously) from my version in #38.
See my example here to get a better understanding of the problem.
Using official example from README, but having UTF-8 quotes
You can see, that when we decode it back token by token - it wont decode in correct way, but it's OK when you decode entire array back.
The text was updated successfully, but these errors were encountered: