{"action":"created","issue":{"url":"https://api.github.com/repos/devsnd/cherrymusic/issues/611","repository_url":"https://api.github.com/repos/devsnd/cherrymusic","labels_url":"https://api.github.com/repos/devsnd/cherrymusic/issues/611/labels{/name}","comments_url":"https://api.github.com/repos/devsnd/cherrymusic/issues/611/comments","events_url":"https://api.github.com/repos/devsnd/cherrymusic/issues/611/events","html_url":"https://github.com/devsnd/cherrymusic/issues/611","id":128183396,"number":611,"title":"Encoding error in file names ?","user":{"login":"SeeDborg","id":7523821,"avatar_url":"https://avatars.githubusercontent.com/u/7523821?v=3","gravatar_id":"","url":"https://api.github.com/users/SeeDborg","html_url":"https://github.com/SeeDborg","followers_url":"https://api.github.com/users/SeeDborg/followers","following_url":"https://api.github.com/users/SeeDborg/following{/other_user}","gists_url":"https://api.github.com/users/SeeDborg/gists{/gist_id}","starred_url":"https://api.github.com/users/SeeDborg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeeDborg/subscriptions","organizations_url":"https://api.github.com/users/SeeDborg/orgs","repos_url":"https://api.github.com/users/SeeDborg/repos","events_url":"https://api.github.com/users/SeeDborg/events{/privacy}","received_events_url":"https://api.github.com/users/SeeDborg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-22T15:45:42Z","updated_at":"2016-04-03T12:26:23Z","closed_at":null,"body":"I have trouble updating the database, having this king of error :\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.4/logging/__init__.py\", line 980, in emit\r\n    stream.write(msg)\r\nUnicodeEncodeError: 'ascii' codec can't encode characters in position 287-288: ordinal not in range(128)\r\nCall stack:\r\n  File \"/usr/lib/python3.4/threading.py\", line 888, in _bootstrap\r\n    self._bootstrap_inner()\r\n  File \"/usr/lib/python3.4/threading.py\", line 920, in _bootstrap_inner\r\n    self.run()\r\n  File \"/usr/lib/python3.4/threading.py\", line 868, in run\r\n    self._target(*self._args, **self._kwargs)\r\n  File \"/opt/cherrymusic/cherrymusicserver/util.py\", line 49, in wrapper\r\n    result = func(*args, **kwargs)\r\n  File \"/opt/cherrymusic/cherrymusicserver/sqlitecache.py\", line 471, in full_update\r\n    self.update_db_recursive(cherry.config['media.basedir'], skipfirst=True)\r\n  File \"/opt/cherrymusic/cherrymusicserver/sqlitecache.py\", line 540, in update_db_recursive\r\n    self.register_file_with_db(item.infs)\r\n  File \"/opt/cherrymusic/cherrymusicserver/sqlitecache.py\", line 312, in register_file_with_db\r\n    log.e(_(\"wrong encoding for filename '%s' (%s)\"), fileobj.relpath, e.__class__.__name__)\r\n  File \"/opt/cherrymusic/cherrymusicserver/log.py\", line 126, in error\r\n    _get_logger().error(msg, *args, **kwargs)\r\nMessage: \"wrong encoding for filename '%s' (%s)\"\r\nArguments: ('Les paradis disponibles/7 - Mon P\\udcc3\\udca8re Ce H\\udcc3\\udca9ros.mp3', 'UnicodeEncodeError')\r\n```\r\n\r\nI think it's related to the caracters in my files' names. How can I fix this ?\r\n\r\n**EDIT:** Formatted code properly. Please use Markdown next time. -- 6arms1leg\r\n"},"comment":{"url":"https://api.github.com/repos/devsnd/cherrymusic/issues/comments/204958717","html_url":"https://github.com/devsnd/cherrymusic/issues/611#issuecomment-204958717","issue_url":"https://api.github.com/repos/devsnd/cherrymusic/issues/611","id":204958717,"user":{"login":"6arms1leg","id":2256008,"avatar_url":"https://avatars.githubusercontent.com/u/2256008?v=3","gravatar_id":"","url":"https://api.github.com/users/6arms1leg","html_url":"https://github.com/6arms1leg","followers_url":"https://api.github.com/users/6arms1leg/followers","following_url":"https://api.github.com/users/6arms1leg/following{/other_user}","gists_url":"https://api.github.com/users/6arms1leg/gists{/gist_id}","starred_url":"https://api.github.com/users/6arms1leg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/6arms1leg/subscriptions","organizations_url":"https://api.github.com/users/6arms1leg/orgs","repos_url":"https://api.github.com/users/6arms1leg/repos","events_url":"https://api.github.com/users/6arms1leg/events{/privacy}","received_events_url":"https://api.github.com/users/6arms1leg/received_events","type":"User","site_admin":false},"created_at":"2016-04-03T12:26:23Z","updated_at":"2016-04-03T12:26:23Z","body":"OK, I tried same thing on my server which gave the same result. Also, I remembered we had similar issues in the past (see https://github.com/devsnd/cherrymusic/issues/368#issuecomment-28640120), even one that is still open (#315).\r\n@devsnd , is the latter one related (or even a duplicate) or did we lost Python >= 2.6 support completely somewhere along the way? :scream: "}}