aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/WatchProtocolEncoder.java
diff options
context:
space:
mode:
authorGavriel Fleischer <flocsy@gmail.com>2019-01-30 05:48:57 +0200
committerGavriel Fleischer <flocsy@gmail.com>2019-01-30 05:48:57 +0200
commit61eb28513bdef0aae9e776f9f872b6c26661556a (patch)
tree310d9ef996289284a604bf128e343648be3c293b /src/org/traccar/protocol/WatchProtocolEncoder.java
parent5bf343a179e9565f78903ae63a002522373163a8 (diff)
downloadtrackermap-server-61eb28513bdef0aae9e776f9f872b6c26661556a.tar.gz
trackermap-server-61eb28513bdef0aae9e776f9f872b6c26661556a.tar.bz2
trackermap-server-61eb28513bdef0aae9e776f9f872b6c26661556a.zip
removed BOM
Diffstat (limited to 'src/org/traccar/protocol/WatchProtocolEncoder.java')
-rw-r--r--src/org/traccar/protocol/WatchProtocolEncoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/WatchProtocolEncoder.java b/src/org/traccar/protocol/WatchProtocolEncoder.java
index 12067f354..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(StandardCharsets.UTF_16));
+ return DataConverter.printHex(value.toString().getBytes(StandardCharsets.UTF_16BE));
}
return null;