Oct-13-2016, 03:36 PM
Not entirely sure, but if I run
If I run
Quote:print('10' + u'\u00B3')in the command terminal and also create the same thing (10^3) within Wordpad, I get the same result and they look identical.
If I run
with open('test.rtf', 'w') as f: f.write('10' + u'\u00b3')I again get the same result. The difference between the first and second methods was in the first instance, the default font is "Calibri", in the second, when double-clicked, the font is "Courier New". So you may have to ensure Python and Word are using the same font.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition