Charset of JSP tags
问题 Simple question about charset of JSP tags. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@taglib tagdir="/WEB-INF/tags" prefix="custom" %> <custom:mytag> </custom:mytag> mytag is simple . tag file located in WEB-INF/tags . Charset of this file in eclipse is UTF-8. For some reason UTF-8 symbols do not display properly. This affect only including tags, another jsp-s that was included display fine 回答1: <%@tag pageEncoding="UTF-8"%> placed in your tag