`
Pringles
  • 浏览: 50598 次
  • 来自: capital of china
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
import java.security.*; String md5(String s){     char hexDigits[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' }; try { byte[] strTemp = s.getBytes(); MessageDigest mdTemp = MessageDigest.getInstance("MD5"); mdTemp.update(strTemp); byte[] ...
<script language="javascript"> alert("String"); location.href="url"; </script> /* *这里的url为服务器端显示的相对路径 * / 如:http://localhost/8080/jsp-examples/www.baidu.com www.baidu.com=url
现象:        用JDBC将中文字段插入MySQL数据库中,然后打开表发现,那些字段都是"??",或者是乱码. 原因:       1.创建数据库时没有指定默认的编码方式,导致数据库使用了MySql的默认字符集latin1。       2.Client端字符集为latin1.       3.进行jdbc链接时使用了不匹配的字符集。   解决办法:      1.创建数据库时将数据库的缺省字符集指定为utf8。sql语句没查到...      2.修改Client默认字符集为utft。windows下在mysql安装目录下找到my.ini,将里面的default-c ...
客户端代码: <? error_reporting(E_ALL); set_time_limit(0); ob_implicit_flush(); $server = "211.94.190.86"; echo date("Y-m-d H:i:s")." Init ftp connection, server is $server.\n"; $ftp = ftp_connect($server); ftp_login($ftp,"viosevent ","event.vios.com"); ...
public static void main(String[] args) {     Hashtable hs = queryFilterInfo();     Connection conn = null; ResultSet rs = null; String sql = null; //转化Enumeration Enumeration en =   hs.keys(); while(en.hasMoreElements()){ //取得keys值 Object keys =   en.nextElement ...
Global site tag (gtag.js) - Google Analytics