wesm/pandas — comment on commit b4ca18bd605e15f3fc43934f52e2752a1231a3dd
File: pandas/core/common.py line 823
By takluyver:

This should be `return value.encode(sys.stdin.encoding, 'replace')` (or 'ignore' for the second parameter), to catch cases where there's a character that can't be represented in the terminal encoding (which is what's happened to @lodagro on #680).