Closed kkoppel closed 1 year ago
Under python 2.7 writing unicode strings as values to etcd fails as follows:
import etcd client = etcd.Client(host='127.0.0.1', port=2379) client.write('/test/foo', u'õäö')
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)
This seems to be all that is needed to fix that.
@kkoppel do you still need this? I'm more inclined to just drop 2.7 support altogether.
No, I'm not using python 2.7 anymore.
Under python 2.7 writing unicode strings as values to etcd fails as follows:
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)
This seems to be all that is needed to fix that.