Jun-16-2021, 11:06 AM
(Jun-16-2021, 07:34 AM)hakelm Wrote: If I running python 3.8 in the terminal do
print(chr(65)+chr(128))
I get the expected result
A�
but if I execute the same command in idle 2.7.12 the result is just an empty line.
Is this a bug or is it a feature?
H
using Ubuntu 16.04
Python 2.x is obsolete, and irrelevant to modern programming. So whether it is a bug or a feature is irrelevant. In any case, a single test is not indicative of anything. But just stop using Python 2.x. It is out of support and officially deprecated. See https://www.python.org/doc/sunset-python-2/
And that is not the expected result. The expected result is A€, since the Euro sign is supposed to be in position 128 in most fonts, in the lower 8-bit set. Have you selected the right font for your output window/console? Or do you even have a modern font installed?