howdoi icon indicating copy to clipboard operation
howdoi copied to clipboard

Can't print non-ascii text to windows terminal

Open SepehrRasouli opened this issue 3 years ago • 3 comments

howdoi can't print non-ASCII text to windows terminal (Persian text in this case)

  • I used colorama feature in this screenshot : Screenshot 2022-03-01 175310

  • This one is without colorama : Screenshot 2022-03-01 175334

SepehrRasouli avatar Mar 01 '22 14:03 SepehrRasouli

I actually have an idea , we can check if there is any non-ASCII text in the processed text , and if there is , we can write the output to a temp txt file and show that to the user. What do you think ? Can i work on it ?

SepehrRasouli avatar Mar 01 '22 14:03 SepehrRasouli

Huh, so with or without colorama we still have the issue if there is any non-ASCII text.

And in both cases, it also breaks the colorization (since we see characters like [49m

gleitz avatar Mar 01 '22 15:03 gleitz

Yes , but the colors work if there aren't any non-ascii chars in the output.

SepehrRasouli avatar Mar 01 '22 17:03 SepehrRasouli