From 61eb28513bdef0aae9e776f9f872b6c26661556a Mon Sep 17 00:00:00 2001 From: Gavriel Fleischer Date: Wed, 30 Jan 2019 05:48:57 +0200 Subject: removed BOM --- src/org/traccar/protocol/WatchProtocolEncoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org') 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; -- cgit v1.2.3