changeset 1600:290f35ca4cda

fix missing encoding of /api/ pages.
author robcast
date Mon, 13 Feb 2017 17:55:17 +0100
parents 4326b99b471f
children fdc1ba447539
files webapp/src/main/webapp/api/ImgInfo-json.jsp webapp/src/main/webapp/api/dirInfo-json.jsp webapp/src/main/webapp/api/dirInfo-xml.jsp webapp/src/main/webapp/api/dlContext-xml.jsp webapp/src/main/webapp/api/dlInfo-json.jsp webapp/src/main/webapp/api/dlInfo-xml.jsp
diffstat 6 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/webapp/src/main/webapp/api/ImgInfo-json.jsp	Mon Feb 13 17:54:46 2017 +0100
+++ b/webapp/src/main/webapp/api/ImgInfo-json.jsp	Mon Feb 13 17:55:17 2017 +0100
@@ -37,7 +37,7 @@
         System.out.println(e);
     }
 }
-%><%
+%><%@ page contentType="application/json" pageEncoding="UTF-8" %><%
 // parsing the query
 docBean.setRequest(request);
 // get file
--- a/webapp/src/main/webapp/api/dirInfo-json.jsp	Mon Feb 13 17:54:46 2017 +0100
+++ b/webapp/src/main/webapp/api/dirInfo-json.jsp	Mon Feb 13 17:55:17 2017 +0100
@@ -40,7 +40,7 @@
         System.out.println(e);
     }
 }
-%><%@ page contentType="application/json" %><%
+%><%@ page contentType="application/json" pageEncoding="UTF-8" %><%
 // process request
 docBean.setRequest(request);
 // get directory
--- a/webapp/src/main/webapp/api/dirInfo-xml.jsp	Mon Feb 13 17:54:46 2017 +0100
+++ b/webapp/src/main/webapp/api/dirInfo-xml.jsp	Mon Feb 13 17:55:17 2017 +0100
@@ -40,7 +40,7 @@
         System.out.println(e);
     }
 }
-%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%@ page contentType="text/xml" %><?xml version="1.0" encoding="UTF-8" ?>
+%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%@ page contentType="text/xml" pageEncoding="UTF-8"%><?xml version="1.0" encoding="UTF-8" ?>
 <%
 // process request
 docBean.setRequest(request);
--- a/webapp/src/main/webapp/api/dlContext-xml.jsp	Mon Feb 13 17:54:46 2017 +0100
+++ b/webapp/src/main/webapp/api/dlContext-xml.jsp	Mon Feb 13 17:55:17 2017 +0100
@@ -38,7 +38,7 @@
         System.out.println(e);
     }
 }
-%><?xml version="1.0" encoding="UTF-8" ?>
+%><%@ page contentType="text/xml" pageEncoding="UTF-8"%><?xml version="1.0" encoding="UTF-8" ?>
 <%
 // process request
 // get digilib config
--- a/webapp/src/main/webapp/api/dlInfo-json.jsp	Mon Feb 13 17:54:46 2017 +0100
+++ b/webapp/src/main/webapp/api/dlInfo-json.jsp	Mon Feb 13 17:55:17 2017 +0100
@@ -34,7 +34,7 @@
         System.out.println(e);
     }
 }
-%><%
+%><%@ page contentType="application/json" pageEncoding="UTF-8" %><%
 // parsing the query
 DigilibServletRequest dlRequest = new DigilibServletRequest(request);
 docBean.setRequest(dlRequest);
--- a/webapp/src/main/webapp/api/dlInfo-xml.jsp	Mon Feb 13 17:54:46 2017 +0100
+++ b/webapp/src/main/webapp/api/dlInfo-xml.jsp	Mon Feb 13 17:55:17 2017 +0100
@@ -34,7 +34,7 @@
         System.out.println(e);
     }
 }
-%><?xml version="1.0" encoding="UTF-8" ?>
+%><%@ page contentType="text/xml" pageEncoding="UTF-8"%><?xml version="1.0" encoding="UTF-8" ?>
 <%
 // process request
 // parsing the query