Saturday, November 28, 2015

Convert all your jsp files to UTF-8 encoding



#Add this header to jsp
<%@ page contentType="text/html; charset=UTF-8" %>

#Command to convert all jsp files to UTF-8
find ./ -iname '*.jsp' -exec iconv -f ISO-8859-1 -t UTF-8

No comments:

Post a Comment