##// END OF EJS Templates
Encode using 'replace' for set_next_input.
Thomas Kluyver -
Show More
@@ -1704,7 +1704,7 b' class InteractiveShell(SingletonConfigurable, Magic):'
1704 [D:\ipython]|2> Hello Word_ # cursor is here
1704 [D:\ipython]|2> Hello Word_ # cursor is here
1705 """
1705 """
1706 if isinstance(s, unicode):
1706 if isinstance(s, unicode):
1707 s = s.encode(self.stdin_encoding)
1707 s = s.encode(self.stdin_encoding, 'replace')
1708 self.rl_next_input = s
1708 self.rl_next_input = s
1709
1709
1710 # Maybe move this to the terminal subclass?
1710 # Maybe move this to the terminal subclass?
General Comments 0
You need to be logged in to leave comments. Login now