I want to draw a graphic using block characters using the Python 3.6 curses module. However, when I try to show a string like:
screen = curses.addstr(2,2,'▄ •▄ ▄▄▄▄· ▄▄▌ ·▄▄▄▄ .▄▄▄ ▄• ')
it does not display properly and instead spits out gibberish like
▄ •▄ ▄▄▄▄· ▄▄▌ ·▄▄▄▄ .▄▄▄ ▄• ▄▌▄▄
when I try to refresh the display.
Is there any way to properly display Unicode characters using the curses module? Using the print() command displays them just fine.
Edit: I'm not trying to have the curses module receive unicode text, I'm just trying to get it to display properly. I have written
import locale
locale.setlocale(locale.LC_ALL,"")
before my code and it still does not work.