Python Forum
idle and characters with decimal value>127
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
idle and characters with decimal value>127
#3
(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?
Reply


Messages In This Thread
RE: idle and characters with decimal value>127 - by supuflounder - Jun-16-2021, 11:06 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Remove escape characters / Unicode characters from string DreamingInsanity 5 13,972 May-15-2020, 01:37 PM
Last Post: snippsat
  testing for Decimal w/o importing decimal every time Skaperen 7 4,525 May-06-2019, 10:23 PM
Last Post: Skaperen
  mixed decimal point characters Skaperen 1 2,248 Mar-10-2019, 05:23 PM
Last Post: stullis
  IDLE not importing pygame (ok outside of IDLE) miner_tom 1 3,356 Sep-14-2018, 07:54 PM
Last Post: Larz60+
  IDLE crash using special characters? reikonaga 6 4,820 Aug-06-2018, 07:37 AM
Last Post: keegan_010
  Python IDLE 3.6.2 on WIn7 vs Pyhton 3 IDLE raspberry djdan_23 5 5,763 Sep-07-2017, 12:51 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020