gleitz / howdoi

instant coding answers via the command line
http://blog.gleitzman.com/post/43330157197/howdoi-instant-coding-answers-via-the-command-line
MIT License
10.56k stars 867 forks source link

Can't print non-ascii text to windows terminal #456

Open SepehrRasouli opened 2 years ago

SepehrRasouli commented 2 years ago

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

SepehrRasouli commented 2 years ago

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 ?

gleitz commented 2 years ago

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

SepehrRasouli commented 2 years ago

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