Setting Character coding in Java for web applications:
HttpServletRequest request=null;
String charEncoding = "UTF-8"; //Can be taken from some configuration files too.
if(request.getCharacterEncoding() == null)
request.setCharacterEncoding(charEncoding);
Wednesday, June 23, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment