This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Dear all: I am using mySQL to store some Chinese character, which is submitted from html form. My problem is: When I use <meta http-equiv=Content-Type content="text/html; charset=utf-8"> in jsp file, the Chinese character can be saved into database correctly and also can be retrieved and displayed correctly later time. When I added <%@ page contentType='text/html; charset=utf-8' %> into the jsp file, the Chinese character cannot be saved and displayed correctly. Can anyone kindly give me some hint why? Thx. ==========================================================
I need to use <%@ page contentType='text/html; charset=utf-8' %> in the jsp file in order to display i18n properties file content. Thanks for your time! guoqiao
Welcome to the Ranch "sun_guoqiao"! You'll find this forum a great place to seek help on JSP pages, and there aren't many rules you'll have to worry about, but one is that proper names are required. Please take a look at the JavaRanch Naming Policy and change your display name to match it. In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious. Thanks! bear JSP Forum Bartender