mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-08 08:10:55 +03:00
Using UTF-8 encoding for PrivateKeyFileResource (Fixes #413)
This commit is contained in:
@@ -27,6 +27,6 @@ public class PrivateKeyFileResource
|
|||||||
@Override
|
@Override
|
||||||
public Reader getReader()
|
public Reader getReader()
|
||||||
throws IOException {
|
throws IOException {
|
||||||
return new InputStreamReader(new FileInputStream(getDetail()));
|
return new InputStreamReader(new FileInputStream(getDetail()), "UTF-8");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user