exo icon indicating copy to clipboard operation
exo copied to clipboard

Fix tokens returning unicode partial chars

Open VansonLeung opened this issue 1 year ago • 2 comments

Fix to prevent seeing � characters when chatting in Chinese.

VansonLeung avatar Feb 05 '25 04:02 VansonLeung

Is this how other APIs fix this? Or is this typically handled by the consumer of the API?

AlexCheema avatar Feb 05 '25 17:02 AlexCheema

I figured out the fix myself, I neither have no clue how other APIs fix this nor I am aware that other APIs have this issue as well.

Some unicode / Chinese characters consist of 2 integers/chars in order to render properly.

My fix hopes to avoid changing any API logic.

VansonLeung avatar Feb 05 '25 19:02 VansonLeung

Thanks so much for your contribution and for taking the time to open this PR.

Since this repository has been fully rewritten and the license has changed, I’m closing all existing open PRs to avoid confusion and to align with the new codebase.

I really appreciate your interest in the project, and you’re very welcome to open a new PR against the updated version if you’d like and we look forward to reviewing it!

Evanev7 avatar Dec 18 '25 14:12 Evanev7