From cc391f845bcaf983d56275e649964e8c1416a62d Mon Sep 17 00:00:00 2001 From: epg <> Date: Tue, 7 Nov 2006 09:48:28 +0000 Subject: [PATCH] Bah unicode. --- fa-rip | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/fa-rip b/fa-rip index fb2a185..92b709d 100755 --- a/fa-rip +++ b/fa-rip @@ -113,10 +113,10 @@ def tags_file(fn, trackcount, various, artist=None, album=None, 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 @@ -135,8 +135,9 @@ def tags_file(fn, trackcount, various, artist=None, album=None, 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) -- 2.56.0