{"action":"created","issue":{"url":"https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus/issues/5021","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/5021/labels{/name}","comments_url":"https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus/issues/5021/comments","events_url":"https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus/issues/5021/events","html_url":"https://github.com/notepad-plus-plus/notepad-plus-plus/issues/5021","id":381544307,"node_id":"MDU6SXNzdWUzODE1NDQzMDc=","number":5021,"title":"Feature Request: More control over auto detect encoding algorithm","user":{"login":"SergeyLastochkin","id":33823683,"node_id":"MDQ6VXNlcjMzODIzNjgz","avatar_url":"https://avatars3.githubusercontent.com/u/33823683?v=4","gravatar_id":"","url":"https://api.github.com/users/SergeyLastochkin","html_url":"https://github.com/SergeyLastochkin","followers_url":"https://api.github.com/users/SergeyLastochkin/followers","following_url":"https://api.github.com/users/SergeyLastochkin/following{/other_user}","gists_url":"https://api.github.com/users/SergeyLastochkin/gists{/gist_id}","starred_url":"https://api.github.com/users/SergeyLastochkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergeyLastochkin/subscriptions","organizations_url":"https://api.github.com/users/SergeyLastochkin/orgs","repos_url":"https://api.github.com/users/SergeyLastochkin/repos","events_url":"https://api.github.com/users/SergeyLastochkin/events{/privacy}","received_events_url":"https://api.github.com/users/SergeyLastochkin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-16T10:40:59Z","updated_at":"2018-11-16T12:56:32Z","closed_at":null,"author_association":"NONE","body":"### Description of the Issue\r\n// I'm using npp 7.5.7 32-bit, build time Jun 29 2018 - 00:46:55\r\n// Environment: Windows 7 Pro 64-bit\r\nResently, I became a part of team that is maintaining a site, which due to historical reasons is using one of these two types of files for css, js or backend scripts and configuration:\r\n1. Encoding: Windows-1251, Line terminator: LF\r\n2. Encoding: UTF-8, Line terminator: LF\r\nAnd thus I need to switch fast between those.\r\n(Windows-1251 is Cyrillic encoding that was popular on Windows in Russia, it was default encoding for Notepad.)\r\n\r\nSo, when I upgraded from npp 6.2 to npp 7.5.7 I started to experience that auto-detection algorithm often identifies Windows-1251 incorrectly as \"Macintosh\" encoding. It's not end of the world and I can set and use hotkeys, but it's difficult to do this consistently. I've filled at least five files this week with malformed input and had to restore backup version and redo all edits. It's tiresome and uncomfortable.\r\n\r\nSo maybe it could be fixed/improved?\r\n\r\n\r\n### Steps to Reproduce the Issue\r\nIf required, I can generate some files for example and check if problem persists in latest version of npp.\r\n\r\nActually, I will do exactly that on the weekend and post it in comments on Monday. (can't do that earlier, unfortunately)\r\n\r\n### Ideas\r\n\r\nI assume behavior and experience would be more comfortable if user of notepad++ would have settings to adjust behavior of auto-detection algorithm. (even if I'm experiencing problems with it now I can't deny that it's really handy to have auto-detection.)\r\nI think we need these:\r\n1. Option to adjust expert weight of encodings.\r\n2. Ability to Blacklist and whitelist some of encodings (maybe by their groupings)\r\n\r\n+ not strictly required but perhaps handy - maybe ability to save sets of those rules as \"profiles\" and quickly switch between those.\r\n\r\n// Thank you for your hard work maintaining npp! It's very useful piece of software for source code editing!"},"comment":{"url":"https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus/issues/comments/439384958","html_url":"https://github.com/notepad-plus-plus/notepad-plus-plus/issues/5021#issuecomment-439384958","issue_url":"https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus/issues/5021","id":439384958,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTM4NDk1OA==","user":{"login":"sasumner","id":30118311,"node_id":"MDQ6VXNlcjMwMTE4MzEx","avatar_url":"https://avatars0.githubusercontent.com/u/30118311?v=4","gravatar_id":"","url":"https://api.github.com/users/sasumner","html_url":"https://github.com/sasumner","followers_url":"https://api.github.com/users/sasumner/followers","following_url":"https://api.github.com/users/sasumner/following{/other_user}","gists_url":"https://api.github.com/users/sasumner/gists{/gist_id}","starred_url":"https://api.github.com/users/sasumner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sasumner/subscriptions","organizations_url":"https://api.github.com/users/sasumner/orgs","repos_url":"https://api.github.com/users/sasumner/repos","events_url":"https://api.github.com/users/sasumner/events{/privacy}","received_events_url":"https://api.github.com/users/sasumner/received_events","type":"User","site_admin":false},"created_at":"2018-11-16T12:56:32Z","updated_at":"2018-11-16T12:56:32Z","author_association":"NONE","body":"> I can generate some files for example and check if problem persists in latest version of npp.\r\n\r\nI think this is a really good idea because IIRC a version newer than the one you stated has made improvements in the encoding auto-detect area.  (I'm not providing more specifics because it doesn't affect me...so I don't know more than that and I'm not inclined to look it up--you can do that.)"}}
{"actor":{"display_login":"sasumner"}}