Replies: 1 comment
|
There are two different things to distinguish here: SymPy deciding to use ASCII instead of Unicode, and the terminal failing to encode/render characters that SymPy already generated. Try forcing the printer explicitly: import sys
from sympy import pprint, symbols
x, y = symbols('x y')
print('stdout:', sys.stdout.encoding, sys.stdout.errors)
print('utf8_mode:', sys.flags.utf8_mode)
pprint(x * y, use_unicode=True)
print('Unicode test: \u22c5 \u221a')Run both the
If you build from an existing I haven't reproduced your application; the test above separates the likely causes without assuming an encoding fix. Drafting was AI-assisted and checked against the linked documentation. |
Uh oh!
There was an error while loading. Please reload this page.
In my program I use python SymPy unicode pprint. Everything prints correctly when I launch .py from windows terminal, but when I use pyinstaller to make .exe it fails to write multiplication dot etc.
My build settings are pyinstaller --clean -F --python-option "X utf8=1"
How to fix this problem?
All reactions