Every single developer should read this article by Joel Spolsky. It is a bit old but still a must.
By the way, I got there browsing a bit after seeing this solution for a classical problem, retrieving Chinese characters from a form and storing them in a database. Thanks Spring for charsetFilter.