potiuk commented on issue #20901: URL: https://github.com/apache/airflow/issues/20901#issuecomment-1015256657
I think the problem is that we really want to store binary data as string. What I thing should be really good solution is to convert the bytes into string assuming that the bytes follow the encoding specified. And if the data is encoded using different encoding, it will fail. I think adding optional "encoding" parameter which falls-back to`'utf-8` is a better idea. getdefaultencoding is something I do not really trust in Python. In many places (including str() built-in function, encoding=utf-8 is default rather than getdefaultencoding. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
