Use UTF-8 everywhere (#228)

This commit is contained in:
Quentame 2020-02-09 13:01:21 +01:00 committed by GitHub
parent b20970098e
commit 19a8079bc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -356,7 +356,7 @@ class PyiCloudService(object):
if sys.version_info[0] >= 3:
return as_unicode
else:
return as_unicode.encode('ascii', 'ignore')
return as_unicode.encode('utf-8', 'ignore')
def __repr__(self):
return '<%s>' % str(self)

View file

@ -85,7 +85,7 @@ class FindMyiPhoneServiceManager(object):
if sys.version_info[0] >= 3:
return as_unicode
else:
return as_unicode.encode('ascii', 'ignore')
return as_unicode.encode('utf-8', 'ignore')
def __repr__(self):
return six.text_type(self)
@ -215,7 +215,7 @@ class AppleDevice(object):
if sys.version_info[0] >= 3:
return as_unicode
else:
return as_unicode.encode('ascii', 'ignore')
return as_unicode.encode('utf-8', 'ignore')
def __repr__(self):
return '<AppleDevice(%s)>' % str(self)

View file

@ -112,7 +112,7 @@ class UbiquityNode(object):
if sys.version_info[0] >= 3:
return as_unicode
else:
return as_unicode.encode('ascii', 'ignore')
return as_unicode.encode('utf-8', 'ignore')
def __repr__(self):
return "<%s: '%s'>" % (