{"action":"created","issue":{"url":"https://api.github.com/repos/blueman-project/blueman/issues/343","labels_url":"https://api.github.com/repos/blueman-project/blueman/issues/343/labels{/name}","comments_url":"https://api.github.com/repos/blueman-project/blueman/issues/343/comments","events_url":"https://api.github.com/repos/blueman-project/blueman/issues/343/events","html_url":"https://github.com/blueman-project/blueman/pull/343","id":101150993,"number":343,"title":"TransferService: decode also source string to codepoints","user":{"login":"yars068","id":11477745,"avatar_url":"https://avatars.githubusercontent.com/u/11477745?v=3","gravatar_id":"","url":"https://api.github.com/users/yars068","html_url":"https://github.com/yars068","followers_url":"https://api.github.com/users/yars068/followers","following_url":"https://api.github.com/users/yars068/following{/other_user}","gists_url":"https://api.github.com/users/yars068/gists{/gist_id}","starred_url":"https://api.github.com/users/yars068/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yars068/subscriptions","organizations_url":"https://api.github.com/users/yars068/orgs","repos_url":"https://api.github.com/users/yars068/repos","events_url":"https://api.github.com/users/yars068/events{/privacy}","received_events_url":"https://api.github.com/users/yars068/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-08-15T08:03:13Z","updated_at":"2015-08-16T16:08:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/blueman-project/blueman/pulls/343","html_url":"https://github.com/blueman-project/blueman/pull/343","diff_url":"https://github.com/blueman-project/blueman/pull/343.diff","patch_url":"https://github.com/blueman-project/blueman/pull/343.patch"},"body":"Hi,\r\nUnicodeDecodeError is become back, as Terminator :) That is now, but also on 'src' variable. I tried to receive a files with same names two times and get this error again. Then, I just added a debug output like:\r\n```python\r\ndest_dir = os.path.basename(src)\r\n+dprint(\"Object '\\src\\' is of type %s\" % type(src)\r\n```\r\nand see (dest_dir is already decoded by  1b430682):\r\n```\r\n_on_transfer_completed (/usr/lib64/python2.7/site-packages/blueman/plugins/applet/TransferService.py:201)\r\nObject 'src' is of type <type 'unicode'> \r\n_________\r\n_on_transfer_completed (/usr/lib64/python2.7/site-packages/blueman/plugins/applet/TransferService.py:201)\r\nObject 'dest_dir' is of type <type 'str'> \r\n_________\r\n_on_transfer_completed (/usr/lib64/python2.7/site-packages/blueman/plugins/applet/TransferService.py:201)\r\nObject 'filename' is of type <type 'unicode'> \r\nadding action\r\n_________\r\n```\r\nThen, I developed a patch."},"comment":{"url":"https://api.github.com/repos/blueman-project/blueman/issues/comments/131577469","html_url":"https://github.com/blueman-project/blueman/pull/343#issuecomment-131577469","issue_url":"https://api.github.com/repos/blueman-project/blueman/issues/343","id":131577469,"user":{"login":"infirit","id":3465730,"avatar_url":"https://avatars.githubusercontent.com/u/3465730?v=3","gravatar_id":"","url":"https://api.github.com/users/infirit","html_url":"https://github.com/infirit","followers_url":"https://api.github.com/users/infirit/followers","following_url":"https://api.github.com/users/infirit/following{/other_user}","gists_url":"https://api.github.com/users/infirit/gists{/gist_id}","starred_url":"https://api.github.com/users/infirit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infirit/subscriptions","organizations_url":"https://api.github.com/users/infirit/orgs","repos_url":"https://api.github.com/users/infirit/repos","events_url":"https://api.github.com/users/infirit/events{/privacy}","received_events_url":"https://api.github.com/users/infirit/received_events","type":"User","site_admin":false},"created_at":"2015-08-16T16:08:26Z","updated_at":"2015-08-16T16:08:26Z","body":">system locale is ru_RU.UTF-8 and I invoke LANG=ru_RU.KOI8-R\r\n\r\nWhy would you do this? Isn't UTF-8 good enough? Are you running __only__ blueman with this  or your whole __user__ session?\r\n\r\nPlease try the following and let us know if this works.\r\n\r\n```diff\r\ndiff --git a/blueman/plugins/applet/TransferService.py b/blueman/plugins/applet/TransferService.py\r\nindex 458a100..6dcf3ba 100644\r\n--- a/blueman/plugins/applet/TransferService.py\r\n+++ b/blueman/plugins/applet/TransferService.py\r\n@@ -219,7 +219,9 @@ class TransferService(AppletPlugin):\r\n             dprint(\"Destination file exists, renaming to: %s\" % filename)\r\n \r\n         dest = os.path.join(dest_dir, filename)\r\n-        shutil.move(src, dest)\r\n+\r\n+        shutil.move(src.encode(\"UTF-8\"), dest.encode(\"UTF-8\"))\r\n \r\n         try:\r\n             status_icon = self._applet.Plugins.StatusIcon\r\n```"}}