当前位置: 代码迷 >> J2SE >> JSP的中文有关问题
  详细解决方案

JSP的中文有关问题

热度:137   发布时间:2016-04-24 15:30:13.0
JSP的中文问题
我在编写一个能够在线看的页面,但在连接中出现了中文连接不上的错误.
  代码如下:  
    <!---->
  <%@page   contentType= "text/html;charset=gb2312 "%>
<body   bgcolor= "#000000 "   text= "#FFFFFF "     topmargin= "0 "   leftmargin= "0 ">
<br   />
<br   />
<br   />
    <center>
<table   border= "0 "   width= "610 "   cellspacing= "1 "   cellpadding= "0 "   bgcolor= "#3F3F3F ">
    <tr>
        <td   width= "450 "   valign= "top ">     <center>
<object   ID= "video2 "   CLASSID= "clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA "   HEIGHT= "340 "   WIDTH= "450 ">
    <param   name= "_ExtentX "   value= "11906 ">
    <param   name= "_ExtentY "   value= "8996 ">
    <param   name= "AUTOSTART "   value= "-1 ">
    <param   name= "SHUFFLE "   value= "0 ">
    <param   name= "PREFETCH "   value= "0 ">
    <param   name= "NOLABELS "   value= "0 ">
    <param   name= "SRC "   value= "龙骑士.rmvb "     />     //这里换上英语如:log.rmvb就可以播放,但是是汉语就不行了
    <param   name= "CONTROLS "   value= "ImageWindow ">
    <param   name= "CONSOLE "   value= "Clip1 ">
    <param   name= "LOOP "   value= "0 ">
    <param   name= "NUMLOOP "   value= "0 ">
    <param   name= "CENTER "   value= "0 ">
    <param   name= "MAINTAINASPECT "   value= "0 ">
    <param   name= "BACKGROUNDCOLOR "   value= "#000000 ">
    <embed   SRC= "4.rpm "   type= "audio/x-pn-realaudio-plugin "   CONSOLE= "Clip1 "   CONTROLS= "ImageWindow "   HEIGHT= "240 "   WIDTH= "352 "   AUTOSTART= "false "> </object>
<object   ID= "video1 "   CLASSID= "clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA "   HEIGHT= "60 "   WIDTH= "450 ">
    <param   name= "_ExtentX "   value= "11906 ">
    <param   name= "_ExtentY "   value= "1588 ">
    <param   name= "AUTOSTART "   value= "-1 ">
    <param   name= "SHUFFLE "   value= "0 ">
    <param   name= "PREFETCH "   value= "0 ">
    <param   name= "NOLABELS "   value= "0 ">
    <param   name= "CONTROLS "   value= "ControlPanel,StatusBar ">
    <param   name= "CONSOLE "   value= "Clip1 ">
    <param   name= "LOOP "   value= "0 ">
    <param   name= "NUMLOOP "   value= "0 ">
  相关解决方案