I went into my Python shell and tested this out, here are the results:
>>> print u"hi\u007F there"
hi there
According to my understanding of this character, it should have not shown the space in that string. What am I doing wrong?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The operation of the
DELETEcharacter (ASCII 7F) depends on the terminal; because it is being printed before the next character, it often does nothing at all. Historically, the meaning of the 7F unicode codepoint has been unclear.The
BACKSPACEcode, 08, operates on the previous character. As the terminal has already printed that, works correctly:Perhaps you can use that instead?