marmotta-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sschaff...@apache.org
Subject git commit: investigating MARMOTTA-548
Date Wed, 08 Oct 2014 11:41:11 GMT
Repository: marmotta
Updated Branches:
  refs/heads/develop cce27f426 -> d7935fcea


investigating MARMOTTA-548


Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/d7935fce
Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/d7935fce
Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/d7935fce

Branch: refs/heads/develop
Commit: d7935fcea5129e6fc50b33aba86b4460df483592
Parents: cce27f4
Author: Sebastian Schaffert <sschaffert@apache.org>
Authored: Wed Oct 8 13:41:38 2014 +0200
Committer: Sebastian Schaffert <sschaffert@apache.org>
Committed: Wed Oct 8 13:41:38 2014 +0200

----------------------------------------------------------------------
 .../marmotta/platform/sparql/webservices/SparqlWebService.java    | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/d7935fce/platform/marmotta-sparql/src/main/java/org/apache/marmotta/platform/sparql/webservices/SparqlWebService.java
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/java/org/apache/marmotta/platform/sparql/webservices/SparqlWebService.java
b/platform/marmotta-sparql/src/main/java/org/apache/marmotta/platform/sparql/webservices/SparqlWebService.java
index cd2d3c2..0b5a090 100644
--- a/platform/marmotta-sparql/src/main/java/org/apache/marmotta/platform/sparql/webservices/SparqlWebService.java
+++ b/platform/marmotta-sparql/src/main/java/org/apache/marmotta/platform/sparql/webservices/SparqlWebService.java
@@ -340,6 +340,9 @@ public class SparqlWebService {
     @Consumes("application/sparql-update")
     public Response updatePostDirectly(@Context HttpServletRequest request, @QueryParam("output")
String resultType) {
 		try {
+            if(request.getCharacterEncoding() == null) {
+                request.setCharacterEncoding("utf-8");
+            }
 			String q = CharStreams.toString(request.getReader());
 	        return update(q, resultType, request);
 		} catch (IOException e) {


Mime
View raw message