diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-01-29 20:45:42 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-29 20:45:42 -0800 |
commit | ccbb2893352ef62c95be6f1968214e4a6fa1a08d (patch) | |
tree | df31297ebf5bcd11ae35c7ee86925872445afd50 /src/org | |
parent | 91dc8dab007f5eb2b3f2036b3aab9a5f70271c0f (diff) | |
parent | 61eb28513bdef0aae9e776f9f872b6c26661556a (diff) | |
download | traccar-server-ccbb2893352ef62c95be6f1968214e4a6fa1a08d.tar.gz traccar-server-ccbb2893352ef62c95be6f1968214e4a6fa1a08d.tar.bz2 traccar-server-ccbb2893352ef62c95be6f1968214e4a6fa1a08d.zip |
Merge pull request #4206 from flocsy/message-encoding
fixed message encoding
Diffstat (limited to 'src/org')
-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..431b0455a 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_16BE)); } return null; |