aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper/StringFinder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/helper/StringFinder.java')
-rw-r--r--src/org/traccar/helper/StringFinder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/helper/StringFinder.java b/src/org/traccar/helper/StringFinder.java
index da6a9bdc2..6c1dafcfd 100644
--- a/src/org/traccar/helper/StringFinder.java
+++ b/src/org/traccar/helper/StringFinder.java
@@ -18,7 +18,7 @@ package org.traccar.helper;
import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.buffer.ChannelBufferIndexFinder;
-import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
public class StringFinder implements ChannelBufferIndexFinder {
@@ -35,7 +35,7 @@ public class StringFinder implements ChannelBufferIndexFinder {
return false;
}
- return string.equals(buffer.toString(guessedIndex, string.length(), Charset.defaultCharset()));
+ return string.equals(buffer.toString(guessedIndex, string.length(), StandardCharsets.US_ASCII));
}
}