diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-01-11 23:54:40 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-01-11 23:54:40 +1300 |
commit | 7dea8d701b8c5dfe777aed39474151eee0887551 (patch) | |
tree | f00625111a31425a02c24898dffde868aeb61b90 /src/org/traccar/protocol | |
parent | a56376ac42ef19cff0a664e518271e491ef737c9 (diff) | |
download | trackermap-server-7dea8d701b8c5dfe777aed39474151eee0887551.tar.gz trackermap-server-7dea8d701b8c5dfe777aed39474151eee0887551.tar.bz2 trackermap-server-7dea8d701b8c5dfe777aed39474151eee0887551.zip |
Fix Navis protocol decoder response
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r-- | src/org/traccar/protocol/NvsProtocolDecoder.java | 3 |
1 files changed, 2 insertions, 1 deletions
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())); } } |