Python Forum
print is showing non printable characters
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
print is showing non printable characters
#4
Thanks for your replies, I guess I solved my problem however I had to use the shell=True parameter otherwise I get the following error:

Traceback (most recent call last):
  File "<pyshell#4>", line 1, in <module>
    output = subprocess.run(['dir'], stdout=subprocess.PIPE, text=True)
  File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 472, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 1178, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
The same behavior when using capture_output=true
Reply


Messages In This Thread
RE: print is showing non printable characters - by turtleman - May-05-2019, 09:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  email Library: properly send message as quoted-printable malonn 3 1,461 Nov-14-2022, 09:31 PM
Last Post: malonn
  is this Unicode printable? Skaperen 2 1,499 Sep-23-2021, 01:25 AM
Last Post: Skaperen
  Print characters in a single line rather than one at a time hhydration 1 2,091 Oct-10-2020, 10:00 PM
Last Post: bowlofred
  get two characters, count and print from a .txt file Pleiades 9 3,558 Oct-05-2020, 09:22 AM
Last Post: perfringo
  Remove escape characters / Unicode characters from string DreamingInsanity 5 14,193 May-15-2020, 01:37 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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