aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/webapp/WEB-INF
diff options
context:
space:
mode:
authorAlexander Marsalek <amarsalek@iaik.tugraz.at>2021-06-25 13:10:41 +0200
committerAlexander Marsalek <amarsalek@iaik.tugraz.at>2021-06-28 14:22:51 +0200
commit759f2277f9b6cf339d8fcc5631ea547855ab9e56 (patch)
treef88357ef218dd1b0037909b61d76c350730c1f69 /pdf-as-web/src/main/webapp/WEB-INF
parent897664089ed6b3082d3dcca946533c83268a79bb (diff)
downloadpdf-as-4-759f2277f9b6cf339d8fcc5631ea547855ab9e56.tar.gz
pdf-as-4-759f2277f9b6cf339d8fcc5631ea547855ab9e56.tar.bz2
pdf-as-4-759f2277f9b6cf339d8fcc5631ea547855ab9e56.zip
seems to work on most systems ..
Diffstat (limited to 'pdf-as-web/src/main/webapp/WEB-INF')
-rw-r--r--pdf-as-web/src/main/webapp/WEB-INF/web.xml17
1 files changed, 16 insertions, 1 deletions
diff --git a/pdf-as-web/src/main/webapp/WEB-INF/web.xml b/pdf-as-web/src/main/webapp/WEB-INF/web.xml
index 9b69c983..7920ad91 100644
--- a/pdf-as-web/src/main/webapp/WEB-INF/web.xml
+++ b/pdf-as-web/src/main/webapp/WEB-INF/web.xml
@@ -31,7 +31,22 @@
<param-value>*</param-value>
</init-param>
</filter>
-
+ <!-- A filter that sets character encoding that is used to decode -->
+ <!-- parameters in a POST request -->
+ <filter>
+ <filter-name>setCharacterEncodingFilter</filter-name>
+ <filter-class>org.apache.catalina.filters.SetCharacterEncodingFilter</filter-class>
+ <init-param>
+ <param-name>encoding</param-name>
+ <param-value>UTF-8</param-value>
+ </init-param>
+ </filter>
+
+ <!-- The mapping for the Set Character Encoding Filter -->
+ <filter-mapping>
+ <filter-name>setCharacterEncodingFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
<!-- filter-mapping>
<filter-name>sitemesh</filter-name>