aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-01-11 23:54:40 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-01-11 23:54:40 +1300
commit7dea8d701b8c5dfe777aed39474151eee0887551 (patch)
treef00625111a31425a02c24898dffde868aeb61b90 /src/org/traccar
parenta56376ac42ef19cff0a664e518271e491ef737c9 (diff)
downloadtrackermap-server-7dea8d701b8c5dfe777aed39474151eee0887551.tar.gz
trackermap-server-7dea8d701b8c5dfe777aed39474151eee0887551.tar.bz2
trackermap-server-7dea8d701b8c5dfe777aed39474151eee0887551.zip
Fix Navis protocol decoder response
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/NvsProtocolDecoder.java3
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()));
}
}