【发布时间】:2012-02-23 08:28:14
【问题描述】:
我想用日语更新 Mp3 (ID3) 标签,但是当我尝试此代码时它给了我错误
tag = eyeD3.Tag()
tag.link(mp3_file_name)
tag.setVersion([2,3,0])
tag.setArtist(u'\u897f\u306f\u3058\u3081')
tag.update()
tag.update() 行通过此错误
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 0-1: ordinal not in range(256)
如何在 mp3 的艺术家标签中添加日本名字?
【问题讨论】:
-
您使用的是哪个版本的 Python?