{"action":"created","issue":{"url":"https://api.github.com/repos/sbraz/pymediainfo/issues/22","repository_url":"https://api.github.com/repos/sbraz/pymediainfo","labels_url":"https://api.github.com/repos/sbraz/pymediainfo/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/sbraz/pymediainfo/issues/22/comments","events_url":"https://api.github.com/repos/sbraz/pymediainfo/issues/22/events","html_url":"https://github.com/sbraz/pymediainfo/issues/22","id":140184073,"number":22,"title":"Encode problems on parse() function","user":{"login":"DaWy","id":1610889,"avatar_url":"https://avatars.githubusercontent.com/u/1610889?v=3","gravatar_id":"","url":"https://api.github.com/users/DaWy","html_url":"https://github.com/DaWy","followers_url":"https://api.github.com/users/DaWy/followers","following_url":"https://api.github.com/users/DaWy/following{/other_user}","gists_url":"https://api.github.com/users/DaWy/gists{/gist_id}","starred_url":"https://api.github.com/users/DaWy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaWy/subscriptions","organizations_url":"https://api.github.com/users/DaWy/orgs","repos_url":"https://api.github.com/users/DaWy/repos","events_url":"https://api.github.com/users/DaWy/events{/privacy}","received_events_url":"https://api.github.com/users/DaWy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2016-03-11T13:33:56Z","updated_at":"2016-04-29T22:13:51Z","closed_at":null,"body":"Hi,\r\n\r\nHaving problems with files with quotes and specials chars like:\r\n\r\n`/home/dmartin/mounted/Multimedia/01-Incomming/2015-11-17_Instal·lació DUES TEXTIL/20151110_180916.mp4`\r\n\r\nThrows up:\r\n\r\n> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 63: ordinal not in range(128)\r\n\r\nFull Traceback:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"OrdenaIncomming.py\", line 240, in <module>\r\n    main()\r\n  File \"OrdenaIncomming.py\", line 158, in main\r\n    mi = MediaInfo.parse(os.path.join(root, arxiu))\r\n  File \"/usr/local/lib/python2.7/dist-packages/pymediainfo/__init__.py\", line 92, in parse\r\n    lib.MediaInfoA_Open(handle, filename.encode(\"utf8\"), 0)\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 63: ordinal not in range(128)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/sbraz/pymediainfo/issues/comments/215895645","html_url":"https://github.com/sbraz/pymediainfo/issues/22#issuecomment-215895645","issue_url":"https://api.github.com/repos/sbraz/pymediainfo/issues/22","id":215895645,"user":{"login":"sbraz","id":4833332,"avatar_url":"https://avatars.githubusercontent.com/u/4833332?v=3","gravatar_id":"","url":"https://api.github.com/users/sbraz","html_url":"https://github.com/sbraz","followers_url":"https://api.github.com/users/sbraz/followers","following_url":"https://api.github.com/users/sbraz/following{/other_user}","gists_url":"https://api.github.com/users/sbraz/gists{/gist_id}","starred_url":"https://api.github.com/users/sbraz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbraz/subscriptions","organizations_url":"https://api.github.com/users/sbraz/orgs","repos_url":"https://api.github.com/users/sbraz/repos","events_url":"https://api.github.com/users/sbraz/events{/privacy}","received_events_url":"https://api.github.com/users/sbraz/received_events","type":"User","site_admin":false},"created_at":"2016-04-29T22:13:51Z","updated_at":"2016-04-29T22:13:51Z","body":"@apwelsh MediaInfoDLL still does not work on Python 2 with accentuated file names on Linux, see the upstream issue which I opened. It does not matter if I use the wchar or the char variant, it fails.\r\nI have cleaned up the code and decided to use the `wchar_t` functions everywhere. I don't understand why MediaInfoDLL does not use them for Linux as they are functional for me both on old and recent Linux versions, as well as Windows 7. Can you try it on Mac OS?"}}