0
votes

I tried something simple like:

with console.status("Processing...", spinner='aesthetic') as status:
     console.print(" ✓")

The expected view should be like this (copied from Pycharms command line): ▰▰▰▰▰▱▱ Processing ✓

When I run the same script in a windows command prompt, the encoding seems to be lost. I really would like to copy the result in here, but then it is display correct. In my Windows command prompt this -> ▰ and this -> ✓ look like a boxed questionmark.

Any idea how to fix that?

Perhaps this and this will help. - snakecharmerb
Those boxed question marks are missing character glyphs in your font (e.g. Lucida Console or Consolas): (Glyph 0 / the .notdef glyph), see also 'cmap' Table. Check my answer How to determine if a Glyph can be displayed?. Set another font for your cmd (e.g. DejaVu Sans Mono or Cascadia Mono), or run your script from cmd tab inside Window Terminal… - JosefZ