exo icon indicating copy to clipboard operation
exo copied to clipboard

Fix tokens returning unicode partial chars

Open VansonLeung opened this issue 11 months 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