网站首页  汉语字词  英语词汇  考试资料  写作素材  旧版资料

请输入您要查询的考试资料:

 

标题 jsp中文显示问号问题解决方法
内容
    jsp中想要输出的中文被显示成问号?在eclipse-windows- preferences中搜索jsp,encoding选项中选择 chinese,此问题便可解决
    问题: jsp中想要输出的中文被显示成“?”
    解决方法 : 在eclipse-windows- preferences中 搜索jsp , encoding选项中选择 chinese 。 这样新建的jsp文件将支持中文显示。
    对已经存在的jsp文件做如下修改: 将各种编码方式都改成gb18030,如下:
    代码如下:
    <%@ page language=java contenttype=text/html; charset=gb18030
    pageencoding=gb18030%>
    <!doctype html public -//w3c//dtd html 4.01 transitional//en >
    <html>
    <head>
    <meta http-equiv=content-type content=text/html; charset=gb18030>
    <title>hello</title>
    </head>
    <body>
    你好
    </body>
    </html>
    则“你好”可正确显示
随便看

 

在线学习网考试资料包含高考、自考、专升本考试、人事考试、公务员考试、大学生村官考试、特岗教师招聘考试、事业单位招聘考试、企业人才招聘、银行招聘、教师招聘、农村信用社招聘、各类资格证书考试等各类考试资料。

 

Copyright © 2002-2024 cuapp.net All Rights Reserved
更新时间:2025/5/13 4:31:44