aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/web/CsvBuilder.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-08-05 11:58:43 +0500
committerAbyss777 <abyss@fox5.ru>2016-08-05 11:58:43 +0500
commit933247b3d2ec24d65203fae39dcafbe2c9afb87e (patch)
tree14e3c104532dc0fa058ed5cf2ef5a4eb99e24660 /src/org/traccar/web/CsvBuilder.java
parent7c96911d3770eafe4625b27acd732b10d717b9d0 (diff)
downloadtrackermap-server-933247b3d2ec24d65203fae39dcafbe2c9afb87e.tar.gz
trackermap-server-933247b3d2ec24d65203fae39dcafbe2c9afb87e.tar.bz2
trackermap-server-933247b3d2ec24d65203fae39dcafbe2c9afb87e.zip
- Added distance rounding
- Fixed charset
Diffstat (limited to 'src/org/traccar/web/CsvBuilder.java')
-rw-r--r--src/org/traccar/web/CsvBuilder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/web/CsvBuilder.java b/src/org/traccar/web/CsvBuilder.java
index cfebec3b4..3f93ee102 100644
--- a/src/org/traccar/web/CsvBuilder.java
+++ b/src/org/traccar/web/CsvBuilder.java
@@ -3,6 +3,7 @@ package org.traccar.web;
import java.beans.Introspector;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
+import java.nio.charset.StandardCharsets;
import java.util.Collection;
import java.util.Date;
import java.util.Map;
@@ -145,6 +146,6 @@ public class CsvBuilder {
}
public byte[] get() {
- return String.valueOf(builder).getBytes();
+ return String.valueOf(builder).getBytes(StandardCharsets.UTF_8);
}
}