Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SepehrRasouli opened this issue Mar 1, 2022 · 3 comments
Open

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

SepehrRasouli opened this issue Mar 1, 2022 · 3 comments
Labels

Comments

@SepehrRasouli
Copy link

SepehrRasouli commented Mar 1, 2022

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
Copy link
Author

SepehrRasouli commented Mar 1, 2022

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
Copy link
Owner

gleitz commented Mar 1, 2022

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants