fp = c(file, fn, 'w')
c(fp.write, 'ARTIST=')
if artist != None:
- c(fp.write, artist)
+ c(fp.write, artist.encode('utf-8'))
c(fp.write, '\nALBUM=')
if album != None:
- c(fp.write, album)
+ c(fp.write, album.encode('utf-8'))
c(fp.write, '\n')
have_date = False
except IndexError:
title = ''
artist = ''
- various and c(fp.write, 'ARTIST[%d]=%s\n' % (i, artist))
- c(fp.write, 'TITLE[%d]=%s\n' % (i, title))
+ various and c(fp.write, 'ARTIST[%d]=%s\n' % (i,
+ artist.encode('utf-8')))
+ c(fp.write, 'TITLE[%d]=%s\n' % (i, title.encode('utf-8')))
c(fp.close)