diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-11-20 17:33:34 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-11-20 17:33:34 +1300 |
commit | f313718772b72a3ff72a37de3b26b80194432b9e (patch) | |
tree | 7be14107950d0e7c284345079ad657bc97e0f326 /src/org/traccar | |
parent | 8e859763e2d9f1805301b19f01430b1aeaae98c5 (diff) | |
download | trackermap-server-f313718772b72a3ff72a37de3b26b80194432b9e.tar.gz trackermap-server-f313718772b72a3ff72a37de3b26b80194432b9e.tar.bz2 trackermap-server-f313718772b72a3ff72a37de3b26b80194432b9e.zip |
Use different charset for string encoder
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/Xrb28Protocol.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Xrb28Protocol.java b/src/org/traccar/protocol/Xrb28Protocol.java index d0a0b1390..b1f1c34fb 100644 --- a/src/org/traccar/protocol/Xrb28Protocol.java +++ b/src/org/traccar/protocol/Xrb28Protocol.java @@ -23,6 +23,8 @@ import org.traccar.PipelineBuilder; import org.traccar.TrackerServer; import org.traccar.model.Command; +import java.nio.charset.StandardCharsets; + public class Xrb28Protocol extends BaseProtocol { public Xrb28Protocol() { @@ -36,7 +38,7 @@ public class Xrb28Protocol extends BaseProtocol { @Override protected void addProtocolHandlers(PipelineBuilder pipeline) { pipeline.addLast(new LineBasedFrameDecoder(1024)); - pipeline.addLast(new StringEncoder()); + pipeline.addLast(new StringEncoder(StandardCharsets.ISO_8859_1)); pipeline.addLast(new StringDecoder()); pipeline.addLast(new Xrb28ProtocolEncoder()); pipeline.addLast(new Xrb28ProtocolDecoder(Xrb28Protocol.this)); |