{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-druid/issues/6709","repository_url":"https://api.github.com/repos/apache/incubator-druid","labels_url":"https://api.github.com/repos/apache/incubator-druid/issues/6709/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-druid/issues/6709/comments","events_url":"https://api.github.com/repos/apache/incubator-druid/issues/6709/events","html_url":"https://github.com/apache/incubator-druid/pull/6709","id":387715687,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2MTQxMDgx","number":6709,"title":"add charset UTF-8 to log api","user":{"login":"dyf6372","id":1322134,"node_id":"MDQ6VXNlcjEzMjIxMzQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1322134?v=4","gravatar_id":"","url":"https://api.github.com/users/dyf6372","html_url":"https://github.com/dyf6372","followers_url":"https://api.github.com/users/dyf6372/followers","following_url":"https://api.github.com/users/dyf6372/following{/other_user}","gists_url":"https://api.github.com/users/dyf6372/gists{/gist_id}","starred_url":"https://api.github.com/users/dyf6372/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dyf6372/subscriptions","organizations_url":"https://api.github.com/users/dyf6372/orgs","repos_url":"https://api.github.com/users/dyf6372/repos","events_url":"https://api.github.com/users/dyf6372/events{/privacy}","received_events_url":"https://api.github.com/users/dyf6372/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-12-05T11:35:01Z","updated_at":"2018-12-06T04:31:07Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/incubator-druid/pulls/6709","html_url":"https://github.com/apache/incubator-druid/pull/6709","diff_url":"https://github.com/apache/incubator-druid/pull/6709.diff","patch_url":"https://github.com/apache/incubator-druid/pull/6709.patch"},"body":"When I retrieve the task log in browser, the Chinese characters all end up as garbage.\r\n![image](https://user-images.githubusercontent.com/1322134/49502749-bd614080-f8b0-11e8-839e-07f7117eebfd.png)\r\nAfter adding charset UTF-8, it was correct.\r\n![image](https://user-images.githubusercontent.com/1322134/49502804-dc5fd280-f8b0-11e8-916b-bda8f1e7f318.png)\r\n"},"comment":{"url":"https://api.github.com/repos/apache/incubator-druid/issues/comments/444744861","html_url":"https://github.com/apache/incubator-druid/pull/6709#issuecomment-444744861","issue_url":"https://api.github.com/repos/apache/incubator-druid/issues/6709","id":444744861,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDc0NDg2MQ==","user":{"login":"asdf2014","id":8108788,"node_id":"MDQ6VXNlcjgxMDg3ODg=","avatar_url":"https://avatars3.githubusercontent.com/u/8108788?v=4","gravatar_id":"","url":"https://api.github.com/users/asdf2014","html_url":"https://github.com/asdf2014","followers_url":"https://api.github.com/users/asdf2014/followers","following_url":"https://api.github.com/users/asdf2014/following{/other_user}","gists_url":"https://api.github.com/users/asdf2014/gists{/gist_id}","starred_url":"https://api.github.com/users/asdf2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asdf2014/subscriptions","organizations_url":"https://api.github.com/users/asdf2014/orgs","repos_url":"https://api.github.com/users/asdf2014/repos","events_url":"https://api.github.com/users/asdf2014/events{/privacy}","received_events_url":"https://api.github.com/users/asdf2014/received_events","type":"User","site_admin":false},"created_at":"2018-12-06T04:31:07Z","updated_at":"2018-12-06T04:31:07Z","author_association":"MEMBER","body":"Hi, @jihoonson. Right, this solution is the most simplified. It would be better to use `MediaType.TEXT_PLAIN +\"; charset = UTF-8\"` instead of `\"text / plain\"`, which can be declared as a TEXT_PLAIN_UTF8 constant.\r\n\r\n> can not fix it by adding a ContainerResponseFilter since there are no related APIs we can use to do\r\n\r\nHi, @QiuMM . Thanks for your comment. I tried program a `MediaTypeFilter` demo, but it's not be tested.\r\n\r\n![image](https://user-images.githubusercontent.com/8108788/49561270-59428900-f951-11e8-8908-684259b5f2dc.png)\r\n\r\n![image](https://user-images.githubusercontent.com/8108788/49561378-ec7bbe80-f951-11e8-8b2b-9aa5e6caae20.png)\r\n\r\n\r\n> And for @Produces(MediaType.APPLICATION_JSON), I had impression that the default encoding for JSON is UTF-8 \r\n\r\nFor this point, I cannot agree with you :sweat_smile:\r\n"}}
{"actor":{"display_login":"asdf2014"}}