Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 字符在页面中显示不正确_Html_Jsp - Fatal编程技术网

Html 字符在页面中显示不正确

Html 字符在页面中显示不正确,html,jsp,Html,Jsp,在gmail登录页面上有语言选择器下拉列表 当我将相同的html从gmail网页源复制到我的网页时,它会在我的下拉列表中显示类似???????的字符 为什么??我已经在我的jsp页面中设置了charset。这是我的页眉 <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ t

在gmail登录页面上有语言选择器下拉列表

当我将相同的html
从gmail网页源复制到我的网页时,它会在我的下拉列表中显示类似
???????
的字符

为什么??我已经在我的jsp页面中设置了charset
。这是我的页眉

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"%>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="Content-Type" content="text/html;">        
    </head>
    <body>

<select>
  <option value="ja">
  ‪日本語‬
  </option>
  <option value="zh-CN">
  ‪简体中文‬
  </option>
  <option value="zh-TW">
  ‪繁體中文‬
  </option>
  </select>

</body>
</html>

‪日本語‬
‪简体中文‬
‪繁體中文‬

提示:始终将
声明添加到HTML文档中,以便浏览器知道所需的文档类型

   <!DOCTYPE html>
    <html>
        <head>
            <meta charset="UTF-8">
        </head>
    <body>
    <select>
      <option value="ja">
      ‪日本語‬
      </option>
      <option value="zh-CN">
      ‪简体中文‬
      </option>
      <option value="zh-TW">
      ‪繁體中文‬
      </option>
    </select>
    </body>
    </html>

‪日本語‬
‪简体中文‬
‪繁體中文‬

工作

共享您的代码或使用fiddle更好。您页面的HTTP头是什么,其实际字符编码是什么?我更新了我的问题以获得更多澄清