0 Replies Latest reply on Jan 13, 2005 10:17 PM by lihai

    Encoding Problem

    lihai

      I writed a jsp file using jbossIDE4.0(Eclipse).after saving the file ,I had found
      a problem of encoding set .
      this is the original file(datadict.jsp):
      <%@page contentType="text/html; charset=GBK" %>
      <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">




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




      ????

      <c:forEach var="result" items="${resultList}" varStatus="i">


      <a href='datadict.do?act=findAll&dh='<c:out value="${result['DH']}"/>'><c:out value='${result["ZDBHY"]}'/>


      </c:forEach>





      when I opened thd file after saving it ,the editor show the file as :

      <%@page contentType="text/html; charset=GBK" %>
      <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">




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




      ??????

      <c:forEach var="result" items="${resultList}" varStatus="i">


      <a href='datadict.do?act=findAll&dh='<c:out value="${result['DH']}"/>'><c:out value='${result["ZDBHY"]}'/>


      </c:forEach>





      thd chinaese character ???? had been converted to ??????.I also use word and IE ,they still show it as the jboss jsp editor for eclipse .
      use eclipse3.1Milestone4 and jbpss IDE4.0.
      How Can I solve this problem ?