aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/sms/HttpSmsClient.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/sms/HttpSmsClient.java')
-rw-r--r--src/org/traccar/sms/HttpSmsClient.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/sms/HttpSmsClient.java b/src/org/traccar/sms/HttpSmsClient.java
index 3f7bc3c85..994e2db4e 100644
--- a/src/org/traccar/sms/HttpSmsClient.java
+++ b/src/org/traccar/sms/HttpSmsClient.java
@@ -49,7 +49,8 @@ public class HttpSmsClient implements SmsManager {
if (authorization == null) {
String user = Context.getConfig().getString("sms.http.user");
String password = Context.getConfig().getString("sms.http.password");
- authorization = "Basic " + DataConverter.printBase64((user + ":" + password).getBytes());
+ authorization = "Basic "
+ + DataConverter.printBase64((user + ":" + password).getBytes(StandardCharsets.UTF_8));
}
template = Context.getConfig().getString("sms.http.template").trim();
if (template.charAt(0) == '{' || template.charAt(0) == '[') {