diff --git a/src/main/java/com/larscheidschmitzhermes/nexus3/github/oauth/plugin/api/GithubApiClient.java b/src/main/java/com/larscheidschmitzhermes/nexus3/github/oauth/plugin/api/GithubApiClient.java index f9685bf..c208c06 100644 --- a/src/main/java/com/larscheidschmitzhermes/nexus3/github/oauth/plugin/api/GithubApiClient.java +++ b/src/main/java/com/larscheidschmitzhermes/nexus3/github/oauth/plugin/api/GithubApiClient.java @@ -170,7 +170,7 @@ private InputStreamReader executeGet(String uri, char[] token) throws GithubAuth request.releaseConnection(); throw new GithubAuthenticationException("Authentication failed."); } - return new InputStreamReader(response.getEntity().getContent()); + return new InputStreamReader(response.getEntity().getContent(), "UTF-8"); } catch (IOException e) { request.releaseConnection(); throw new GithubAuthenticationException(e);