# HG changeset patch # User Sebastien Jodogne # Date 1478085363 -3600 # Node ID 9cf176bc21ad6ea0a8f246a4f5446c8c7f19b5e3 # Parent 87b395a77c41974587c3ffe15d8709901defd297 Content-Type for JSON documents is now "application/json; charset=utf-8" diff -r 87b395a77c41 -r 9cf176bc21ad Core/RestApi/RestApiOutput.cpp --- a/Core/RestApi/RestApiOutput.cpp Mon Oct 31 16:17:15 2016 +0100 +++ b/Core/RestApi/RestApiOutput.cpp Wed Nov 02 12:16:03 2016 +0100 @@ -94,7 +94,7 @@ #if ORTHANC_PUGIXML_ENABLED == 1 std::string s; Toolbox::JsonToXml(s, value); - output_.SetContentType("application/xml"); + output_.SetContentType("application/xml; charset=utf-8"); output_.Answer(s); #else LOG(ERROR) << "Orthanc was compiled without XML support"; @@ -104,7 +104,7 @@ else { Json::StyledWriter writer; - output_.SetContentType("application/json"); + output_.SetContentType("application/json; charset=utf-8"); output_.Answer(writer.write(value)); } diff -r 87b395a77c41 -r 9cf176bc21ad NEWS --- a/NEWS Mon Oct 31 16:17:15 2016 +0100 +++ b/NEWS Wed Nov 02 12:16:03 2016 +0100 @@ -27,6 +27,7 @@ * Performance warning if runtime debug assertions are turned on * Improved robustness against files with no PatientID * Upgrade to curl 7.50.3 for static and Windows builds +* Content-Type for JSON documents is now "application/json; charset=utf-8" Version 1.1.0 (2016/06/27)