{"action":"opened","issue":{"url":"https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus/issues/2480","repository_url":"https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus","labels_url":"https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus/issues/2480/labels{/name}","comments_url":"https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus/issues/2480/comments","events_url":"https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus/issues/2480/events","html_url":"https://github.com/notepad-plus-plus/notepad-plus-plus/issues/2480","id":185034630,"number":2480,"title":"Wrong code page for opened file","user":{"login":"jcarbaut","id":15981625,"avatar_url":"https://avatars.githubusercontent.com/u/15981625?v=3","gravatar_id":"","url":"https://api.github.com/users/jcarbaut","html_url":"https://github.com/jcarbaut","followers_url":"https://api.github.com/users/jcarbaut/followers","following_url":"https://api.github.com/users/jcarbaut/following{/other_user}","gists_url":"https://api.github.com/users/jcarbaut/gists{/gist_id}","starred_url":"https://api.github.com/users/jcarbaut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcarbaut/subscriptions","organizations_url":"https://api.github.com/users/jcarbaut/orgs","repos_url":"https://api.github.com/users/jcarbaut/repos","events_url":"https://api.github.com/users/jcarbaut/events{/privacy}","received_events_url":"https://api.github.com/users/jcarbaut/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-25T07:02:42Z","updated_at":"2016-10-25T07:02:42Z","closed_at":null,"body":"<!--- This is a generic template and may not be applicable in all cases. -->\r\n<!--- Try to follow it where possible. -->\r\n\r\n### Description of the Issue\r\nWhen I configure Npp to save as ANSI, and I write some text containing \"éé\", next time I open it, it has codepage Windows-1255, and the characters are scambled.\r\nWith different combinations, I get different codepages on next open:\r\néé -> Windows-1255\r\néô -> ISO 8859-7\r\nèà -> Windows-1251\r\n\r\nWhile the last two are unlikely to appear, the first is not uncommon in french. Anyway, there is probably behind the scene an algorithm to recognize automatically codepages, and it does not seem to work well.\r\n\r\n### Steps to Reproduce the Issue\r\n<!--- Set of steps to reproduce this issue -->\r\n1. create a new text file, with ANSI encoding\r\n2. write a line of text containing the combinations of characters above\r\n3. save, close, reopen\r\n\r\n### Expected Behavior\r\n<!--- What did you expect to happen -->\r\nIf I save as ANSI, I expect to reopen as ANSI. It would be preferable to bypass the automatic codepage recognition, whatever default codepage I choose.\r\n\r\n### Actual Behavior\r\n<!--- What actually happend -->\r\nDescribed above.\r\n\r\n### Debug Information\r\n<!--- Debug Info can be found under under the \"?\" menu -->\r\n\r\n<!--- Feel free to include any other info, such as screenshots, etc -->\r\n"}}
{"actor":{"display_login":"jcarbaut"}}