Merge pull request #205 from ndbroadbent/patch-1
Fix PhotoAlbum#__str__ for UTF-8 album titles
This commit is contained in:
commit
b20970098e
1 changed files with 1 additions and 1 deletions
|
@ -403,7 +403,7 @@ class PhotoAlbum(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'>" % (
|
||||
|
|
Loading…
Reference in a new issue