diff options
author | Gavriel Fleischer <flocsy@gmail.com> | 2019-01-29 23:36:01 +0200 |
---|---|---|
committer | Gavriel Fleischer <flocsy@gmail.com> | 2019-01-29 23:36:01 +0200 |
commit | 5bf343a179e9565f78903ae63a002522373163a8 (patch) | |
tree | 1f5b67db53f726ad82fb0725d72bd8f780e8bf74 /src | |
parent | ff0572b84c85f2bcfb177d1fe7a119a6dc51627a (diff) | |
download | trackermap-server-5bf343a179e9565f78903ae63a002522373163a8.tar.gz trackermap-server-5bf343a179e9565f78903ae63a002522373163a8.tar.bz2 trackermap-server-5bf343a179e9565f78903ae63a002522373163a8.zip |
fixed message encoding
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/WatchProtocolEncoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/WatchProtocolEncoder.java b/src/org/traccar/protocol/WatchProtocolEncoder.java index f66ba4072..12067f354 100644 --- a/src/org/traccar/protocol/WatchProtocolEncoder.java +++ b/src/org/traccar/protocol/WatchProtocolEncoder.java @@ -37,7 +37,7 @@ public class WatchProtocolEncoder extends StringProtocolEncoder implements Strin DecimalFormat fmt = new DecimalFormat("+#.##;-#.##", DecimalFormatSymbols.getInstance(Locale.US)); return fmt.format(offset); } else if (key.equals(Command.KEY_MESSAGE)) { - return DataConverter.printHex(value.toString().getBytes()); + return DataConverter.printHex(value.toString().getBytes(StandardCharsets.UTF_16)); } return null; |