{"action":"created","issue":{"url":"https://api.github.com/repos/lambdalisue/vim-gita/issues/55","labels_url":"https://api.github.com/repos/lambdalisue/vim-gita/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/lambdalisue/vim-gita/issues/55/comments","events_url":"https://api.github.com/repos/lambdalisue/vim-gita/issues/55/events","html_url":"https://github.com/lambdalisue/vim-gita/issues/55","id":99134621,"number":55,"title":"Wrong encoding","user":{"login":"BimbaLaszlo","id":7034200,"avatar_url":"https://avatars.githubusercontent.com/u/7034200?v=3","gravatar_id":"","url":"https://api.github.com/users/BimbaLaszlo","html_url":"https://github.com/BimbaLaszlo","followers_url":"https://api.github.com/users/BimbaLaszlo/followers","following_url":"https://api.github.com/users/BimbaLaszlo/following{/other_user}","gists_url":"https://api.github.com/users/BimbaLaszlo/gists{/gist_id}","starred_url":"https://api.github.com/users/BimbaLaszlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BimbaLaszlo/subscriptions","organizations_url":"https://api.github.com/users/BimbaLaszlo/orgs","repos_url":"https://api.github.com/users/BimbaLaszlo/repos","events_url":"https://api.github.com/users/BimbaLaszlo/events{/privacy}","received_events_url":"https://api.github.com/users/BimbaLaszlo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-05T06:27:53Z","updated_at":"2015-08-08T07:34:44Z","closed_at":null,"body":"I love to be an active developer of the plugin, but I don't have enough time to browse and understand the code, thus my contribution is limited to opening issues. :)\r\n\r\nThe problem is when I `:Gita file`, `Gita diff`, etc. on a file with different encoding than my operating system, then it contains weird characters.\r\n\r\nFor example my system's (Windows 7) encoding is _cp1250_, or _latin2_ (i got it from `:set fileencoding=default`). If I hitting `:Gita diff HEAD` on this, it the results are correct. But if I doing it on an UTF8 file, the output is messy (and **the encoding is _cp1250_ instead of _utf8_**):\r\n\r\n![encoding](https://cloud.githubusercontent.com/assets/7034200/9079525/6b300736-3b4b-11e5-81cc-a7375c8a86cc.png)\r\n\r\nYou can try out by cloning bimbalaszlo/sandbox, but be sure to set `set fileformats=unix,dos fileencodings=utf8,cp1250,default` in Your _~/.vimrc_.\r\n\r\nPs.:\r\nTried out with minimal settings - same results.\r\n"},"comment":{"url":"https://api.github.com/repos/lambdalisue/vim-gita/issues/comments/128926685","html_url":"https://github.com/lambdalisue/vim-gita/issues/55#issuecomment-128926685","issue_url":"https://api.github.com/repos/lambdalisue/vim-gita/issues/55","id":128926685,"user":{"login":"lambdalisue","id":546312,"avatar_url":"https://avatars.githubusercontent.com/u/546312?v=3","gravatar_id":"","url":"https://api.github.com/users/lambdalisue","html_url":"https://github.com/lambdalisue","followers_url":"https://api.github.com/users/lambdalisue/followers","following_url":"https://api.github.com/users/lambdalisue/following{/other_user}","gists_url":"https://api.github.com/users/lambdalisue/gists{/gist_id}","starred_url":"https://api.github.com/users/lambdalisue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lambdalisue/subscriptions","organizations_url":"https://api.github.com/users/lambdalisue/orgs","repos_url":"https://api.github.com/users/lambdalisue/repos","events_url":"https://api.github.com/users/lambdalisue/events{/privacy}","received_events_url":"https://api.github.com/users/lambdalisue/received_events","type":"User","site_admin":false},"created_at":"2015-08-08T07:34:44Z","updated_at":"2015-08-08T07:34:44Z","body":"But it seems redundunt. If there is better way, I prefer that."}}