From 7dea8d701b8c5dfe777aed39474151eee0887551 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 11 Jan 2016 23:54:40 +1300 Subject: Fix Navis protocol decoder response --- src/org/traccar/protocol/NvsProtocolDecoder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/org/traccar') diff --git a/src/org/traccar/protocol/NvsProtocolDecoder.java b/src/org/traccar/protocol/NvsProtocolDecoder.java index 5597c8bbb..0c15f6fc5 100644 --- a/src/org/traccar/protocol/NvsProtocolDecoder.java +++ b/src/org/traccar/protocol/NvsProtocolDecoder.java @@ -16,6 +16,7 @@ package org.traccar.protocol; import org.jboss.netty.buffer.ChannelBuffer; +import org.jboss.netty.buffer.ChannelBuffers; import org.jboss.netty.channel.Channel; import org.traccar.BaseProtocolDecoder; import org.traccar.helper.UnitsConverter; @@ -36,7 +37,7 @@ public class NvsProtocolDecoder extends BaseProtocolDecoder { private void sendResponse(Channel channel, String response) { if (channel != null) { - channel.write(response); + channel.write(ChannelBuffers.copiedBuffer(response, Charset.defaultCharset())); } } -- cgit v1.2.3