2011/1/2 <vwu98...@lycos.com>: > 2011/1/1 <vwu98...@lycos.com>: >> * <%...@page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%> on >> the first line of JSP files >> * <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> > > I'd recommend > <meta http-equiv="Content-Type" content="<%=response.getContentType()%>"> > to make sure that the HTTP Content-Type header and <META> tag contents > were in sync. > ©©©©©©©©©©©©©© > Do I need to ensure the encoding to be utf-8 in all situation? If so, what is > the advantage of your approach? > ©©©©©©©©©©©©©©
It just guarantees that both values match with each other (and thus the browser is not confused and won't start to guess). Nothing more. > ©©©©©©©©©©©©©© > Does the url pattern cover all URLs? > Read the Servlet Specification. > > How is your <FORM> element written on the web page? ©©©©©©©©©©©©©© > It is a regular form, not for file uploading. > ©©©©©©©©©©©©©© > OK --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org