From b9ff2f13afa82ba327bae188c5e2ad095915d38a Mon Sep 17 00:00:00 2001 From: Welluh Date: Sat, 28 Feb 2015 13:40:09 +0200 Subject: [PATCH] =?UTF-8?q?Lis=C3=A4tty=20UTF-8=20filtteri?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Filtteri pakottaa POST-metodin käyttämään UTF-8:aa. Ääkköset tallentuvat myös tietokantaan oikein tämän jälkeen. --- .../src/main/webapp/WEB-INF/web.xml | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/d14-spring_mvc/src/main/webapp/WEB-INF/web.xml b/d14-spring_mvc/src/main/webapp/WEB-INF/web.xml index 8420fc0..4edbed8 100644 --- a/d14-spring_mvc/src/main/webapp/WEB-INF/web.xml +++ b/d14-spring_mvc/src/main/webapp/WEB-INF/web.xml @@ -15,4 +15,25 @@ org.springframework.web.context.ContextLoaderListener - \ No newline at end of file + + + + encoding-filter + org.springframework.web.filter.CharacterEncodingFilter + + encoding + UTF-8 + + + + forceEncoding + true + + + + + encoding-filter + /* + + +