Skip to content

Commit

Permalink
actually make umlauts in names work (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
notcancername authored Sep 3, 2024
1 parent cbecc54 commit 9e88c43
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/org/bytedream/untis4j/RequestManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ public static Infos generateUserInfosAndLogin(String username, String password,
connection.setRequestProperty("User-Agent", userAgent);
connection.setRequestProperty("Content-Type", "application/json;charset=UTF-8");

DataOutputStream outputStream = new DataOutputStream(connection.getOutputStream());
outputStream.writeBytes(requestBody);
OutputStreamWriter utf8Writer = new OutputStreamWriter(connection.getOutputStream(), StandardCharsets.UTF_8);
utf8Writer.write(requestBody);
utf8Writer.close();

BufferedReader input;

Expand Down

0 comments on commit 9e88c43

Please sign in to comment.