当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 一、在前期设计时,发现数据库中的中文是正确的,传输到页面显示时
 

 

 ·eclipse插件安装    »显示摘要«
    摘要: a.从别人那里搞的eclipse的安装tips eclipse的插件安装是很方便的,只需将插件目录拷贝到eclipse安装目录下的plugins子目录下即可,但有时候即使这样做了插件还是没有出来,目前来说可按下面几个步骤检查: 1.首先看一下about中的plugin装载清单,如果没有则需先确认所安装的插件的依赖插件已经安装。eclipse的插件是有依赖关系的,具体表现在每个插件plugin.x......
    摘要: 主要使用的是java.util.robot类来捕获屏幕,可以实现对屏幕一个矩形区域的捕获,通过这个类,我们也可以实现一个远程桌面控制的程序package com.qiu.util;import java.io.*;import java.net.*;import javax.swing.*;import java.awt.*;import java.awt.event.*;import java......


解决tomcat5.0中文乱码问题纪录
一.在前期设计时,发现数据库中的中文是正确的,传输到页面显示时有乱码问题,用unicodetogb2312方法进行处理后,页面显示正确,

方法的写法如下: 【程序编程相关:java.net.DatagramSoc

例:custid = customerchange.unicodetogb2312(custid); 【推荐阅读:Servlet基本结构

       if(strvalue != null) 【扩展信息:JSP 处理Cookie

public static string unicodetogb2312(string strvalue) throws unsupportedencodingexception {

              return new string(strvalue.trim().getbytes("iso-8859-1"), "gb2312");

       else

              return "";

}

注意事项:将页面数据保存到数据库中时,不得进行码转换,

直接赋值:custid = custid; javabean中采用如下写法

       public void setcustid(string custid){

              if(!isshow){

                     try{


...   下一页
    摘要: the essence of oop using java: static membersprefacethis lesson is one of a series of lessons designed to teach you about the essence of object-oriented programming (oop) using java. the first lesson......
» 本期热门文章:

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