1. Travis Shirk
  2. eyeD3
  3. Issues
Issue #60 invalid

Unable to set UTF8 encoded artist

earlchew
created an issue

Attempting to set a UTF8 encoded artist label:

% .../Beyoncé/BEYONCE$ eyeD3 --encoding utf8 -a "Beyoncé" Blow.mp3
Uncaught exception: 'ascii' codec can't decode byte 0xc3 in position 34: ordinal not in range(128)

eyed3:ERROR: 'ascii' codec can't decode byte 0xc3 in position 34: ordinal not in range(128)
Traceback (most recent call last):
  File "/store/home/earl/Local/eyeD3/pkg/eyed3/src/eyed3/main.py", line 284, in <module>
    retval = mainFunc(args, config)
  File "/store/home/earl/Local/eyeD3/pkg/eyed3/src/eyed3/main.py", line 52, in main
    fs_encoding=args.fs_encoding)
  File "/store/home/earl/Local/eyeD3/pkg/eyed3/src/eyed3/utils/__init__.py", line 125, in walk
    handler.handleFile(os.path.abspath(path))
  File "/usr/lib/python2.6/posixpath.py", line 337, in abspath
    path = join(os.getcwd(), path)
  File "/usr/lib/python2.6/posixpath.py", line 70, in join
    path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 34: ordinal not in range(128)

Comments (2)

  1. Travis Shirk repo owner

    I can run your command successfully with a test file. The stack trace is failing in python posixpath.py, so I believe there is problems making unicode file paths on your system.

  2. Log in to comment