<%@ page import="java.util.*" %> <%@ page contentType="text/xml; charset=UTF-8" %> <% //////////////// Enumeration params = request.getParameterNames(); while(params.hasMoreElements()) { String n = (String)params.nextElement(); String[] v = request.getParameterValues(n); for(int i = 0; i < v.length; i++) { String str = v[i]; // parse query args (URLENCODING) to Unicode as UTF8 byte p[] = str.getBytes("8859_1"); String ustr = new String(p, 0, p.length, "UTF-8"); out.print(""); } } %>