当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

    摘要: 我要获取当前的时间ctime::getcurrenttime(),然后传递给unsigned long保存。请求帮助。。。 ......
    摘要: 我用以下代码写了一个取出cpu序列号的程序。但是,我在单位里多台机器上运行得到的4组序列号,每一台都一样,单位的电脑都是p4 1.7g的品牌机(topsonic),难道intel的p4 1.7g序列号都一样?还是我的程序有问题? function getcpuid:tcpuid; assembler; register; asm push ebx push edi mov edi,e......


jsp + tomcat4.1 + jdk1.4.1 + sqlserver2000的问题

在上述条件下,问什么在jsp页面下不能显示汉字,我写的汉字都是乱码,在线求助!

NO.1   作者: otom3

try:  
  下面这个,或许可以帮你解决问题!  
   
  <%=new   String(rs(yourfield).getBytes,"iso-8859-1")%>

NO.2   作者: wangeren

(潇雨寒)    
  同意!!

NO.3   作者: kreven

<%@   page   language="Java"   contentType="text/html;   charset=GB2312"%>  
  <%  
        request.setCharacterEncoding("gb2312");  
  %>

NO.4   作者: Leric

public   String   toGb(String   uniStr){  
          String   gbStr   =   "";  
          if(uniStr   ==   null){  
              uniStr   =   "";  
          }  
          try{  
            byte[]   tempByte   =   uniStr.getBytes("ISO8859_1");  
            gbStr   =   new   String(tempByte,"GB2312");  
          }catch(UnsupportedEncodingException   uef){  
        }  
          return   gbStr;  
      }  
      public   String   toUni(String   gbStr){  
          String   uniStr   =   "";  
          if(gbStr   ==   null){  
              gbStr   =   "";  
          }  
          try{  
            byte[]   tempByte   =   gbStr.getBytes("GB2312");  
            uniStr   =   new   String(tempByte,"ISO8859_1");  
          }catch(UnsupportedEncodingException   uef){  
        }  
          return   uniStr;  
      }


    摘要: 我把 winnt/php.ini 的 ;include_path="\path1;\path2" 改成: include_path=".;c:\php\pear" 但是还是不行,老是有 cannot create stream 、 not found 之类的错误。 感激不尽! ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE