Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我提交一个 jsp 页面并且请求转到一个 portlet 控制器时,我希望 jsp 页面上的法语字符始终在 portlet 控制器中使用 UTF-8 进行编码。我需要在 jsp 或 portlet 控制器中使用什么代码语法来确保这一点?
为我工作
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
在 JSP 的顶部