Monthly Archives: September 2012

Set charset in Spring MVC


To set up encoding for site, you can use CharacterEncodingFilter in web.xml like this:


 encodingFilter
 org.springframework.web.filter.CharacterEncodingFilter
 
  encoding  
  UTF-8  
   
  
 forceEncoding  
 true  
   
  

  
encodingFilter  
/*  

Also http://stackoverflow.com/questions/138948/how-to-get-utf-8-working-in-java-webapps

Grab sites with WGET


To download whole site use the next snopet:
wget -r -l0 -k -p http://site.name