senuc
asked on
about jsp,servlet -- contentType
in jsp i use this to set contentType
<%@page contentType="text/html;cha rset=gb231 2"%>
but how to set it in servlet??
<%@page contentType="text/html;cha
but how to set it in servlet??
HttpServletResponse.setCon tentType(" text/html; charset=Bi g5");
ASKER
i use solaris 5.8 ?{?@jdk1.3.1 + resin2.0
when I use
<%@page contentType="text/html;cha rset=gb231 2"%>
the chinese words in jsp is right
but when i use
HttpServletResponse.setCon tentType(" text/html; charset=gb 2312"); or
HttpServletResponse.setCon tentType(" text/html; charset=Bi g5");
the chinese words all thange to ???
when I use
<%@page contentType="text/html;cha
the chinese words in jsp is right
but when i use
HttpServletResponse.setCon
HttpServletResponse.setCon
the chinese words all thange to ???
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
senuc -> Please click this link and update/finalize your old, open questions.
https://www.experts-exchange.com/jsp/memberProfile.jsp?mbr=senuc&showQHistory=true
Thanks,
Moondancer - EE Moderator
https://www.experts-exchange.com/jsp/memberProfile.jsp?mbr=senuc&showQHistory=true
Thanks,
Moondancer - EE Moderator