Skip to content

Commit

Permalink
For #91 - fixed XML stream encoding issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalidze committed Feb 20, 2015
1 parent a379875 commit e39b380
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void gpx(HttpServletResponse response, Device device, Date from, Date to, boolea
DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
dateFormat.setTimeZone(tz);

XMLStreamWriter xsw = XMLOutputFactory.newFactory().createXMLStreamWriter(response.getOutputStream());
XMLStreamWriter xsw = XMLOutputFactory.newFactory().createXMLStreamWriter(response.getOutputStream(), "UTF-8");

xsw.writeStartDocument("UTF-8", "1.0");
xsw.writeStartElement("gpx");
Expand Down

0 comments on commit e39b380

Please sign in to comment.