aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/SigfoxProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-09-09 11:58:57 -0700
committerAnton Tananaev <anton@traccar.org>2023-09-09 11:58:57 -0700
commit2dcc3e0ee0ac637ca85e2457dc3d12c4edc01ec4 (patch)
tree088da22e55ec6a4530559f18b37988888c5f4c29 /src/main/java/org/traccar/protocol/SigfoxProtocolDecoder.java
parent1ae9886ad10edcbc876a5295021f86bb7e534fde (diff)
downloadtrackermap-server-2dcc3e0ee0ac637ca85e2457dc3d12c4edc01ec4.tar.gz
trackermap-server-2dcc3e0ee0ac637ca85e2457dc3d12c4edc01ec4.tar.bz2
trackermap-server-2dcc3e0ee0ac637ca85e2457dc3d12c4edc01ec4.zip
Add RAMAC Multievent Callback
Diffstat (limited to 'src/main/java/org/traccar/protocol/SigfoxProtocolDecoder.java')
-rw-r--r--src/main/java/org/traccar/protocol/SigfoxProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/SigfoxProtocolDecoder.java b/src/main/java/org/traccar/protocol/SigfoxProtocolDecoder.java
index 1298112d1..6f739a1a4 100644
--- a/src/main/java/org/traccar/protocol/SigfoxProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/SigfoxProtocolDecoder.java
@@ -105,7 +105,7 @@ public class SigfoxProtocolDecoder extends BaseHttpProtocolDecoder {
FullHttpRequest request = (FullHttpRequest) msg;
String content = request.content().toString(StandardCharsets.UTF_8);
if (!content.startsWith("{")) {
- content = URLDecoder.decode(content.split("=")[0], "UTF-8");
+ content = URLDecoder.decode(content.split("=")[0], StandardCharsets.UTF_8);
}
JsonObject json = Json.createReader(new StringReader(content)).readObject();