Author jeff.allen
Recipients jeff.allen
Date 2017-10-21.07:16:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
As reported in, an attempt to write non-ascii text via csv results in the infamous:

java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Cannot create PyString with non-byte value

Being old-school Python 2, this module thinks in bytes and leaves encoding to the user. By convention (?), the content of a CSV will be interpreted as UTF-8, so clients sensitive to the problem will supply encoded data. We reverse this philosophy in Python 3.

Almost certainly we should use a ByteBuffer where we presently use a StringBuilder since the file is in binary mode and the user should expect to encode the text before calling csv.writer.writerow().
Date User Action Args
2017-10-21 07:16:14jeff.allensetrecipients: + jeff.allen
2017-10-21 07:16:14jeff.allensetmessageid: <>
2017-10-21 07:16:14jeff.allenlinkissue2632 messages
2017-10-21 07:16:13jeff.allencreate