Skip to content

Commit 329966e

Browse files
committed
Using UTF-8 encoding for PrivateKeyFileResource (Fixes #413)
1 parent 10918f3 commit 329966e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/schmizz/sshj/userauth/password/PrivateKeyFileResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ public PrivateKeyFileResource(File privateKeyFile) {
2727
@Override
2828
public Reader getReader()
2929
throws IOException {
30-
return new InputStreamReader(new FileInputStream(getDetail()));
30+
return new InputStreamReader(new FileInputStream(getDetail()), "UTF-8");
3131
}
3232
}

0 commit comments

Comments
 (0)