{"action":"created","issue":{"url":"https://api.github.com/repos/dbeaver/dbeaver/issues/4889","repository_url":"https://api.github.com/repos/dbeaver/dbeaver","labels_url":"https://api.github.com/repos/dbeaver/dbeaver/issues/4889/labels{/name}","comments_url":"https://api.github.com/repos/dbeaver/dbeaver/issues/4889/comments","events_url":"https://api.github.com/repos/dbeaver/dbeaver/issues/4889/events","html_url":"https://github.com/dbeaver/dbeaver/issues/4889","id":395162734,"node_id":"MDU6SXNzdWUzOTUxNjI3MzQ=","number":4889,"title":"Chinese character unreadable(中文乱码) after save as another file in Dbeaver 5.3.1 Windows7 x64","user":{"login":"mythcolor","id":3599217,"node_id":"MDQ6VXNlcjM1OTkyMTc=","avatar_url":"https://avatars2.githubusercontent.com/u/3599217?v=4","gravatar_id":"","url":"https://api.github.com/users/mythcolor","html_url":"https://github.com/mythcolor","followers_url":"https://api.github.com/users/mythcolor/followers","following_url":"https://api.github.com/users/mythcolor/following{/other_user}","gists_url":"https://api.github.com/users/mythcolor/gists{/gist_id}","starred_url":"https://api.github.com/users/mythcolor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mythcolor/subscriptions","organizations_url":"https://api.github.com/users/mythcolor/orgs","repos_url":"https://api.github.com/users/mythcolor/repos","events_url":"https://api.github.com/users/mythcolor/events{/privacy}","received_events_url":"https://api.github.com/users/mythcolor/received_events","type":"User","site_admin":false},"labels":[{"id":275893724,"node_id":"MDU6TGFiZWwyNzU4OTM3MjQ=","url":"https://api.github.com/repos/dbeaver/dbeaver/labels/question","name":"question","color":"bfe5bf","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-01-02T06:55:46Z","updated_at":"2019-01-03T10:30:28Z","closed_at":"2019-01-03T10:30:28Z","author_association":"NONE","body":"OS: Windows7 professional 64bit, Language and territory is Chinese simplified China 中文（简体，中国）\r\ndbeaver-ce-5.3.1-win32.win32.x86_64.zip (the latest version so far)\r\n\r\nNew a sql editor; type some Chinese characters, save as a file to a non-default path. Then you will see the characters become unreadable(中文乱码) .\r\n\r\nIf open that file in Notepad++ you will see the format is UTF8 without BOM. Change it to ANSI and then it becomes no problem in dbeaver. But when you save it again in Dbeaver the problem occurs again.\r\n\r\nIf save to default dir(not save as) , no problem.\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n<!--\r\nThank you for reporting an issue.\r\n\r\n*IMPORTANT* -  *before* creating a new issue please look around:\r\n - DBeaver documentation: https://github.com/dbeaver/dbeaver/wiki\r\n and\r\n - open issues in Github tracker: https://github.com/dbeaver/dbeaver/issues\r\n  \r\nIf you cannot find a similar problem, then create a new issue. Short tips about new issues can be found here: https://github.com/dbeaver/dbeaver/wiki/Posting-issues\r\n\r\nPlease, do not create issue duplicates. If you find the same or similar issue, just add a comment or vote for this feature. It helps us to track the most popular requests and fix them faster.\r\n\r\nPlease fill in as much of the template as possible.\r\n-->\r\n\r\n#### System information: \r\n- Operating system (distribution) and version\r\n- DBeaver version\r\n- Java version \r\n- Additional extensions\r\n\r\n#### Connection specification:\r\n- Database name and version\r\n- Driver name\r\n- Do you use security connection (SSH, Proxy, etc)? \r\n\r\n\r\n#### Describe the problem you're observing:\r\n\r\n#### Steps to reproduce, if exist:\r\n\r\n#### Include any warning/errors/backtraces from the logs\r\n<!-- Please, find the short guide how to find logs here: https://github.com/dbeaver/dbeaver/wiki/Log-files-->\r\n"},"comment":{"url":"https://api.github.com/repos/dbeaver/dbeaver/issues/comments/451105801","html_url":"https://github.com/dbeaver/dbeaver/issues/4889#issuecomment-451105801","issue_url":"https://api.github.com/repos/dbeaver/dbeaver/issues/4889","id":451105801,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTEwNTgwMQ==","user":{"login":"mythcolor","id":3599217,"node_id":"MDQ6VXNlcjM1OTkyMTc=","avatar_url":"https://avatars2.githubusercontent.com/u/3599217?v=4","gravatar_id":"","url":"https://api.github.com/users/mythcolor","html_url":"https://github.com/mythcolor","followers_url":"https://api.github.com/users/mythcolor/followers","following_url":"https://api.github.com/users/mythcolor/following{/other_user}","gists_url":"https://api.github.com/users/mythcolor/gists{/gist_id}","starred_url":"https://api.github.com/users/mythcolor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mythcolor/subscriptions","organizations_url":"https://api.github.com/users/mythcolor/orgs","repos_url":"https://api.github.com/users/mythcolor/repos","events_url":"https://api.github.com/users/mythcolor/events{/privacy}","received_events_url":"https://api.github.com/users/mythcolor/received_events","type":"User","site_admin":false},"created_at":"2019-01-03T10:30:28Z","updated_at":"2019-01-03T10:30:28Z","author_association":"NONE","body":"Yes, it's the key point! In my computer, the default text file encoding is GB18030. Fortunately I set the text encoding of the workspace to UTF8, problem solved! Thanks very much!"}}
{"actor":{"display_login":"mythcolor"}}