chenmz1995

我们在做java项目的时候,都会有个首页,一般就是index.jsp,然后在index.jsp中引入相关的文件,一般也是引入打包过后的相关资源文件。

当index.jsp上面的中文出现乱码的时候,就需要设置字符的编码。

 

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

 

分类:

技术点:

相关文章:

  • 2021-08-13
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
猜你喜欢
  • 2021-06-27
  • 2021-07-25
  • 2022-02-15
  • 2021-11-09
  • 2021-08-24
  • 2021-05-23
相关资源
相似解决方案