{"action":"created","issue":{"url":"https://api.github.com/repos/nskvortsov/test/issues/265","labels_url":"https://api.github.com/repos/nskvortsov/test/issues/265/labels{/name}","comments_url":"https://api.github.com/repos/nskvortsov/test/issues/265/comments","events_url":"https://api.github.com/repos/nskvortsov/test/issues/265/events","html_url":"https://github.com/nskvortsov/test/issues/265","id":54184317,"number":265,"title":"UTF-8 encoded files are written as UTF-8 without BOM in the destination","user":{"login":"nskvortsov","id":539027,"avatar_url":"https://avatars.githubusercontent.com/u/539027?v=3","gravatar_id":"","url":"https://api.github.com/users/nskvortsov","html_url":"https://github.com/nskvortsov","followers_url":"https://api.github.com/users/nskvortsov/followers","following_url":"https://api.github.com/users/nskvortsov/following{/other_user}","gists_url":"https://api.github.com/users/nskvortsov/gists{/gist_id}","starred_url":"https://api.github.com/users/nskvortsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nskvortsov/subscriptions","organizations_url":"https://api.github.com/users/nskvortsov/orgs","repos_url":"https://api.github.com/users/nskvortsov/repos","events_url":"https://api.github.com/users/nskvortsov/events{/privacy}","received_events_url":"https://api.github.com/users/nskvortsov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-13T12:04:13Z","updated_at":"2015-01-13T12:04:14Z","closed_at":"2015-01-13T12:04:13Z","body":"Hello,\n\nI've just started using this plugin, and for binary files it works like a charm.\n\nUnfortunately I'm experiencing a problem copying text files encoded in UTF-8. Basically any UTF-8 file is copied to the destination as being UTF-8 without BOM, leaving the BOM bytes in the beginning of the file and making it unreadable by the destination application.\n\nAttached is the original file that gets generated by the build process (01-before.xml) and the same file in the destination FTP, after being copied by this plugin (02-after.xml).\n\nThanks,\nCaio Proiete\n\n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/nskvortsov/deployer/issue/14\n- Originally reported by: Caio Proiete\n- Originally created at: 2013-05-19T15:22:49.867\n"},"comment":{"url":"https://api.github.com/repos/nskvortsov/test/issues/comments/69734662","html_url":"https://github.com/nskvortsov/test/issues/265#issuecomment-69734662","issue_url":"https://api.github.com/repos/nskvortsov/test/issues/265","id":69734662,"user":{"login":"nskvortsov","id":539027,"avatar_url":"https://avatars.githubusercontent.com/u/539027?v=3","gravatar_id":"","url":"https://api.github.com/users/nskvortsov","html_url":"https://github.com/nskvortsov","followers_url":"https://api.github.com/users/nskvortsov/followers","following_url":"https://api.github.com/users/nskvortsov/following{/other_user}","gists_url":"https://api.github.com/users/nskvortsov/gists{/gist_id}","starred_url":"https://api.github.com/users/nskvortsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nskvortsov/subscriptions","organizations_url":"https://api.github.com/users/nskvortsov/orgs","repos_url":"https://api.github.com/users/nskvortsov/repos","events_url":"https://api.github.com/users/nskvortsov/events{/privacy}","received_events_url":"https://api.github.com/users/nskvortsov/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T12:04:13Z","updated_at":"2015-01-13T12:04:13Z","body":"This is due to ASCII transfer mode automatically detected. I have added an option to force Binary (or ASCII) transfer mode. Binary one will solve your problem.\n\nFixed in [this build](http://teamcity.jetbrains.com/viewLog.html?buildId=87490)\n\n----------------------------------------\nOriginal comment by: Nikita Skvortsov\n"}}