%@ page contentType="text/html; charset=UTF-8" %>
Data posted to this form was: <% request.setCharacterEncoding("UTF-8"); out.print(request.getParameter("mydata")); %>