question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unsupported Unicodes on Windows 10

See original GitHub issue

Hello,

My code with smooth bar and waves spinner works well on Ubuntu.

However, the same code on Windows 10 shows incorrect output due to the Unicode issue.

alive_issue

Please suggest a workaround for this!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
pranjal-joshicommented, May 29, 2021

Sure! I will try more about packing font in the executable. I will reopen and update if I found a way to do it. meanwhile, I just use the following code to avoid bad-looking blocks:

    import platform
    bar = 'smooth'
    spinner = 'waves'
    if 'Windows' in platform.platform():
        bar = 'classic2'
        spinner = 'dots_recur'
    with alive_bar(numStocks,bar=bar,spinner=spinner) as progressbar:
        # Do some stuff here
        progressbar()

Thank you both for quick support! 😃

0reactions
TheTechRobocommented, May 29, 2021

I don’t think so, unless you bundle a full-on terminal with it. 😕

Font choice is set by the console, not the program, sadly.

Did Nerd fonts work? If so, you could always simply suggest it, saying that if it doesn’t work try the nerd font…

In any case it’s not horrible, they’ll just see little squares instead of bits of the progress bar.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to display unsupported unicode for window title
I am developing an application by using Java swing. In my application I want to display Myanmar font (Unicode) for window title.
Read more >
Errors caused by Windows 10 Unicode UTF-8 encoding – nShift
Errors caused by Windows 10 Unicode UTF-8 encoding · Close nShift On-premises. · Delete the Consignor folder under AppData. · Open Windows Control ......
Read more >
Make Windows correctly display characters from languages ...
Make Windows correctly display characters from languages other than English (set non-Unicode programs). tutorial by Ciprian Adrian Rusen ...
Read more >
How to print unsupported unicode characters on Windows ...
Neat. Do you know if there is a way to specify which character to use as the replacement (other than ? )? –...
Read more >
the SPSS 22 error "DATA 1721" in Windows 10 Pro but ... - IBM
In Windows 10, however, I got the message "SPSS Statistics data file .....is written in a character encoding (windows-1250) incompatible with the current ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found