{"action":"created","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1385","repository_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1385/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1385/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1385/events","html_url":"https://github.com/spring-cloud/spring-cloud-netflix/issues/1385","id":181817125,"number":1385,"title":"zuul proxy file upload, file name is Chinese garbled","user":{"login":"treeleafj","id":3805088,"avatar_url":"https://avatars.githubusercontent.com/u/3805088?v=3","gravatar_id":"","url":"https://api.github.com/users/treeleafj","html_url":"https://github.com/treeleafj","followers_url":"https://api.github.com/users/treeleafj/followers","following_url":"https://api.github.com/users/treeleafj/following{/other_user}","gists_url":"https://api.github.com/users/treeleafj/gists{/gist_id}","starred_url":"https://api.github.com/users/treeleafj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treeleafj/subscriptions","organizations_url":"https://api.github.com/users/treeleafj/orgs","repos_url":"https://api.github.com/users/treeleafj/repos","events_url":"https://api.github.com/users/treeleafj/events{/privacy}","received_events_url":"https://api.github.com/users/treeleafj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-08T09:58:06Z","updated_at":"2016-10-08T10:05:05Z","closed_at":null,"body":"using zuul proxy mode: @EnableZuulProxy,\r\n\r\nupload file:  中文.txt\r\n\r\nmy service:\r\n```java\r\n@RequestMapping(\"file\")\r\n public String file(MultipartFile file) {\r\n        log.info(\"file:{}\", file.getOriginalFilename());//at this, is print ????.txt, not print 中文.txt.  Chinese garbled\r\n\r\n        String name = \"E:/\" + file.getOriginalFilename();\r\n        try {\r\n            Path path = Paths.get(name);\r\n            if (Files.notExists(path)) {\r\n                Files.createFile(path);\r\n            }\r\n            output = new FileOutputStream(name);\r\n            IOUtils.copy(file.getInputStream(), output);\r\n            output.close();\r\n        } catch (Exception e) {\r\n            log.error(\"upload error\", e);\r\n            return \"error\";\r\n        } finally {\r\n            IOUtils.closeQuietly(output);\r\n        }\r\n        return \"ok\";\r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/comments/252416174","html_url":"https://github.com/spring-cloud/spring-cloud-netflix/issues/1385#issuecomment-252416174","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1385","id":252416174,"user":{"login":"treeleafj","id":3805088,"avatar_url":"https://avatars.githubusercontent.com/u/3805088?v=3","gravatar_id":"","url":"https://api.github.com/users/treeleafj","html_url":"https://github.com/treeleafj","followers_url":"https://api.github.com/users/treeleafj/followers","following_url":"https://api.github.com/users/treeleafj/following{/other_user}","gists_url":"https://api.github.com/users/treeleafj/gists{/gist_id}","starred_url":"https://api.github.com/users/treeleafj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treeleafj/subscriptions","organizations_url":"https://api.github.com/users/treeleafj/orgs","repos_url":"https://api.github.com/users/treeleafj/repos","events_url":"https://api.github.com/users/treeleafj/events{/privacy}","received_events_url":"https://api.github.com/users/treeleafj/received_events","type":"User","site_admin":false},"created_at":"2016-10-08T10:05:05Z","updated_at":"2016-10-08T10:05:05Z","body":"no zuul can be"}}
{"actor":{"display_login":"treeleafj"}}