I was executing a python script through a Bash terminal, and the output of the script suddenly became in bad characters like "IOE⎼⎼⎺⎼: [E⎼⎼┼⎺ 2]" Now when I try typing in the terminal it gives me "┌⎽" for "ls" for example. If I open a new terminal, it’s fine but whenever I run that script it’s a problem. I can’t find anything in the script that would do this. Anyone have suggestions?
Source: Python Questions