Changes between Initial Version and Version 1 of Ticket #26870, comment 13


Ignore:
Timestamp:
12/12/18 08:33:26 (3 years ago)
Author:
embray
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26870, comment 13

    initial v1  
    1 Yikes, I didn't realize this myself (it has not come up often), but it turns out on Python 2 most exceptions can't accept exception messages as unicode objects! :(  https://pythonhosted.org/kitchen/unicode-frustrations.html#frustration-5-exceptions
     1Yikes, I didn't realize this myself (it has not come up often), but it turns out on Python 2 most exceptions can't accept exception messages as unicode objects (rather, it can, but it will still try to implicitly encode them with ASCII)! :(  https://pythonhosted.org/kitchen/unicode-frustrations.html#frustration-5-exceptions
    22
    33The best thing to do would be to convert them to bytes, but ''only'' on Python 2, just using UTF-8 probably.