From 0bc1784f51311a9c5f4b37423c88ec54b970fa01 Mon Sep 17 00:00:00 2001 From: jon-stumpf Date: Fri, 24 Feb 2017 18:47:56 -0500 Subject: Added US_ASCII Charset to ChannelBuffer.toString() call; --- src/org/traccar/protocol/AplicomProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar') diff --git a/src/org/traccar/protocol/AplicomProtocolDecoder.java b/src/org/traccar/protocol/AplicomProtocolDecoder.java index 92e0d178c..daa8844b4 100644 --- a/src/org/traccar/protocol/AplicomProtocolDecoder.java +++ b/src/org/traccar/protocol/AplicomProtocolDecoder.java @@ -490,7 +490,7 @@ public class AplicomProtocolDecoder extends BaseProtocolDecoder { break; } buf.readUnsignedByte(); - position.set(Position.KEY_VIN, buf.readBytes(17).toString()); + position.set(Position.KEY_VIN, buf.readBytes(17).toString(StandardCharsets.US_ASCII)); position.set("towedDetectionStatus", buf.readUnsignedByte()); } else if (type == 0x0E) { buf.skipBytes(length); -- cgit v1.2.3