??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲欧洲无卡二区视頻,亚洲色欲久久久久综合网,亚洲大香人伊一本线http://www.tkk7.com/mlw2000/zh-cnTue, 13 May 2025 16:10:39 GMTTue, 13 May 2025 16:10:39 GMT60TortoiseSVN 配合 Beyond Compare 3 ?WinMerge 的设|?/title><link>http://www.tkk7.com/mlw2000/archive/2009/03/12/259443.html</link><dc:creator>mlw2000</dc:creator><author>mlw2000</author><pubDate>Thu, 12 Mar 2009 14:08:00 GMT</pubDate><guid>http://www.tkk7.com/mlw2000/archive/2009/03/12/259443.html</guid><wfw:comment>http://www.tkk7.com/mlw2000/comments/259443.html</wfw:comment><comments>http://www.tkk7.com/mlw2000/archive/2009/03/12/259443.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/mlw2000/comments/commentRss/259443.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/mlw2000/services/trackbacks/259443.html</trackback:ping><description><![CDATA[<div><font size="2" face="Verdana">日常code工作中,<wbr>比较ȝ的就是SVN版本冲突时的Merge了,<wbr>因ؓTortoiseSVN的比较工具只能比较,<wbr>不能同时做MergeQ?/font></div> <div>一直以来L在用WinMerge来扩展TortoiseSVN<wbr>本n的DifferQ虽然方便很多,<wbr>但是WinMerge?span class="il">Beyond</span> <span id="64yscoe" class="il">Compare</span> 3比v来还是不够强大,昨天查看?span class="il">Beyond</span> <span id="e4yq2y6" class="il">Compare</span> 3的帮助文档,试验l果比较理想Q可以告别Merge的痛苦了Q?wbr>;-)?/div> <div>TortoiseSVN的设|如下:</div> <div>1.选择TortoiseSVN-->Settings</div> <div><img alt="" src="https://mail.google.com/mail/?ui=2&ik=cfd88826b8&view=att&th=11d50b955f8165a7&attid=0.1&disp=emb&zw" align="baseline" border="0" hspace="0" /></div> <div> </div> <div>2.选择Diff Viewer的设|项Q配|扩展比较器的调用命令,<wbr>WinMerge?span class="il">Beyond</span> <span id="q24ssuk" class="il">Compare</span> 3的调用字W串如下Q?/div> <div>WinMergeQC:\Program Files\WinMerge\WinMergeU.exe -e -x -ub -dl %bname -dr %yname %base %mine</div> <div><span id="gc2kg44" class="il">Beyond</span> <span id="meu4y4m" class="il">Compare</span> 3QC:\Program Files\<span id="2yiukwu" class="il">Beyond</span> <span id="yi44es4" class="il">Compare</span> 3\BComp.exe %mine %base</div> <div><a><wbr></a></div> <div><img alt="" src="https://mail.google.com/mail/?ui=2&ik=cfd88826b8&view=att&th=11d50b955f8165a7&attid=0.2&disp=emb&zw" align="baseline" border="0" hspace="0" /></div> <div> </div> <img src ="http://www.tkk7.com/mlw2000/aggbug/259443.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/mlw2000/" target="_blank">mlw2000</a> 2009-03-12 22:08 <a href="http://www.tkk7.com/mlw2000/archive/2009/03/12/259443.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>GMT和PST--关于时区的知识[转]http://www.tkk7.com/mlw2000/archive/2009/03/07/258353.htmlmlw2000mlw2000Sat, 07 Mar 2009 04:32:00 GMThttp://www.tkk7.com/mlw2000/archive/2009/03/07/258353.htmlhttp://www.tkk7.com/mlw2000/comments/258353.htmlhttp://www.tkk7.com/mlw2000/archive/2009/03/07/258353.html#Feedback0http://www.tkk7.com/mlw2000/comments/commentRss/258353.htmlhttp://www.tkk7.com/mlw2000/services/trackbacks/258353.htmlGMT和PST--关于时区的知?

1、概念和换算
2、日期中的时区标?
3、在Oracle 9i中正{换时?
4、redhat9l端方式下更Ҏ(gu)?
5、java下的时区......
GMT和PST--关于时区的知?

我们在网上浏览,在虚拟时IO怸界时Q经怼遇到时区的困扎ͼq篇文章是什么时间发布的Q邮件是什么时间发出的QGMT和PST各代表什么意思,如何换算Q等{?
我通过互联|搜集了一些小知识Q供大家参考?

1、概念和换算
PST - 国太^z标准时?
GMT 格林威治标准旉


几个换算公式Q因为是24q制Q看h有点?
(GMT Q?)Q?6 QPST
PST+7 = GMT
PST+16 = GMT + 8(中国)

我们是东八区Q加州是西八区,中间?6个小时?

2、关于日期中的时区标志?

׃都在互联|上Q大家在各个时区的事件表C有所不同Q因此日期要转换到当前时区的日期和时_在互联网上,大家一般都用CTS(世界标准旉Q有UCGMT(格林治旉Q?
譬如日期旉为:Sat, 30 Mar 2002 13:27:08 -0800Q我们当前所在的时区为正8区(北京旉Q,则用我们所在时C就?Sat, 30 Mar 2002 29Q?3+16Q?27:08 即Sun, 31 Mar 2002 6:27:08 +8000?---??
目前存在的时区有Q?
GMT 格林威治标准旉 GMT
UTC 全球标准旉 GMT
ECT Ƨ洲中部旉 GMT+1:00
EET 东欧旉 GMT+2:00
ART Q阿拉伯Q埃及标准时?GMT+2:00
EAT 东非旉 GMT+3:00
MET 中东旉 GMT+3:30
NET q东旉 GMT+4:00
PLT 巴基斯坦拉合时?GMT+5:00
IST 印度标准旉 GMT+5:30
BST 孟加拉国标准旉 GMT+6:00
VST 南标准旉 GMT+7:00
CTT 中国台湾旉 GMT+8:00
JST 日本标准旉 GMT+9:00
ACT 澛_利亚中部旉 GMT+9:30
AET 澛_利亚东部旉 GMT+10:00
SST 所|门标准旉 GMT+11:00
NST 新西兰标准时?GMT+12:00
MIT 中途岛旉 GMT-11:00
HST 夏威h准时?GMT-10:00
AST 阿拉斯加标准旉 GMT-9:00
PST 太^z标准时?GMT-8:00
PNT 菲尼克斯标准旉 GMT-7:00
MST 襉Kp标准旉 GMT-7:00
CST 中部标准旉 GMT-6:00
EST 东部标准旉 GMT-5:00
IET 印第安那东部标准旉 GMT-5:00
PRT 波多黎各和美属维京岛旉 GMT-4:00
CNT 加拿大纽芬兰旉 GMT-3:30
AGT 阿根h准时?GMT-3:00
BET 巴西东部旉 GMT-3:00
CAT 中非旉 GMT-1:00

3、教你怎样在Oracle 9i中正{换时?

在Oracle9i之前Q虽然有一个NEW_TIME函数可以改变DATE的时间戳部分Q但是还没有专门用来存储时区信息的数据类型。在 Oracle9i 中,我们可以使用DBTIMEZONE伪字D|询数据库的时区,使用SESSIONTIMEZONE伪字D|询会话的时区?
但是Q对于大多数数据库,q些值都?07:00之类的偏Ud|因此对于NEW_TIME函数是没有用的。Oracle9i有关 NEW_TIME的文档徏议用FROM_TZ来替代,但是q可能会产生误导。FROM_TZ只将一个时区应用到一个时间戳上;它ƈ不能把一个时{换成 另外一个时区?
其实有一个比较好的方法(从文中得到q个Ҏ(gu)可能有点难)。首先,Z完成q个工作Q在正确的时区内需要一个TIMESTAMP WITH ZONE数据cd。然后,如果你将关键字AT TIME ZONE应用到那个|它就会自动地调整为新的时区和日期?
select (timestamp ';2003-04-06 01:59:59'; at time zone ';PDT';) at time zone ';GMT';   from dual;
06-APR-03 08.59.59.00000000 AM GMT

q个语句ؓ太^z白天时_卛_切换到PST之前的时刻)构造一个TIMESTAMP WITH TIME ZONE然后再将其{换到GMT。AT TIME ZONE关键字也接受默认的偏UdD法:
select (timestamp ';2003-04-06 02:00:00'; at time zone ';-07:00';) at time zone   ';00:00'; from dual;
06-APR-03 09.00.00.000000000 AM +00:00
你还可以使用伪字D|自动调整当前会话的时区:
select current_timestamp at time zone dbtimezone from dual;
上面的表辑ּq回一个当前会话的本地旉Q数据类型ؓ时区Q,重新调整数据库的时区Q调整后的时区将与SYSTIMESTAMP的结果相{。有了以上的q些信息Q就可以构造一个比较好的NEW_TIME函数Q?
create or replace function my_new_time (p_dwtz timestamp with time zone,     p_tz varchar2   ) return date is
begin
return cast(p_dwtz at time zone p_tz as date);
end
my_new_time;
/
show errors;
select my_new_time(sysdate,';+08:00';) from dual;
即ɽW一个参数被标记Z个timestamp with time zoneQ你依然可以传入一个TIMESTAMP和DATEQ这L于Oracle的自动{型操作,得到的时间将是会话在本地时区的当前时间。这个函数接 受包括偏Ud在内的M可以被TIMESTAMP识别的时区,然后接受的时区调整为正的倹{?/p>

mlw2000 2009-03-07 12:32 发表评论
]]>
HTML Escape Characters: Complete List(html转义字符列表)【{?/title><link>http://www.tkk7.com/mlw2000/archive/2008/10/26/236727.html</link><dc:creator>mlw2000</dc:creator><author>mlw2000</author><pubDate>Sun, 26 Oct 2008 08:43:00 GMT</pubDate><guid>http://www.tkk7.com/mlw2000/archive/2008/10/26/236727.html</guid><wfw:comment>http://www.tkk7.com/mlw2000/comments/236727.html</wfw:comment><comments>http://www.tkk7.com/mlw2000/archive/2008/10/26/236727.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.tkk7.com/mlw2000/comments/commentRss/236727.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/mlw2000/services/trackbacks/236727.html</trackback:ping><description><![CDATA[     摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&g...  <a href='http://www.tkk7.com/mlw2000/archive/2008/10/26/236727.html'>阅读全文</a><img src ="http://www.tkk7.com/mlw2000/aggbug/236727.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/mlw2000/" target="_blank">mlw2000</a> 2008-10-26 16:43 <a href="http://www.tkk7.com/mlw2000/archive/2008/10/26/236727.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>javascript日期的常用计?/title><link>http://www.tkk7.com/mlw2000/archive/2007/08/21/138250.html</link><dc:creator>mlw2000</dc:creator><author>mlw2000</author><pubDate>Mon, 20 Aug 2007 16:30:00 GMT</pubDate><guid>http://www.tkk7.com/mlw2000/archive/2007/08/21/138250.html</guid><wfw:comment>http://www.tkk7.com/mlw2000/comments/138250.html</wfw:comment><comments>http://www.tkk7.com/mlw2000/archive/2007/08/21/138250.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/mlw2000/comments/commentRss/138250.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/mlw2000/services/trackbacks/138250.html</trackback:ping><description><![CDATA[<p>其中function addDate()是从|上copy来的:</p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #000000"><!</span><span style="COLOR: #000000">DOCTYPE HTML PUBLIC </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">-//W3C//DTD HTML 4.0 Transitional//EN</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">HTML</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">HEAD</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">TITLE</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"> New Document </span><span style="COLOR: #000000"></</span><span style="COLOR: #000000">TITLE</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">META NAME</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">Generator</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> CONTENT</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">EditPlus</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">META NAME</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">Author</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> CONTENT</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">""</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">META NAME</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">Keywords</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> CONTENT</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">""</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">META NAME</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">Description</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> CONTENT</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">""</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">SCRIPT LANGUAGE</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">JavaScript</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #000000"><!--</span><span style="COLOR: #000000"><br><br></span><span style="COLOR: #0000ff">function</span><span style="COLOR: #000000"> testAddDate(){<br>    </span><span style="COLOR: #0000ff">var</span><span style="COLOR: #000000"> usedate </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> document.all(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">doss_card.usedate</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">).value;    <br>    </span><span style="COLOR: #0000ff">var</span><span style="COLOR: #000000"> work_year </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> document.all(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">doss_card.work_year</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">).value;<br><br>    </span><span style="COLOR: #0000ff">var</span><span style="COLOR: #000000"> tempArry</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">usedate.split('</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">');<br>    </span><span style="COLOR: #0000ff">var</span><span style="COLOR: #000000"> date</span><span style="COLOR: #000000">=</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> Date(tempArry[</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">],tempArry[</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">]</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">);<br><br>    </span><span style="COLOR: #0000ff">var</span><span style="COLOR: #000000"> newdate </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> addDate(</span><span style="COLOR: #000000">6</span><span style="COLOR: #000000">,work_year,date);<br>    </span><span style="COLOR: #0000ff">var</span><span style="COLOR: #000000"> limtyear</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">newdate.getYear() </span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">' </span><span style="COLOR: #000000">+</span><span style="COLOR: #000000"> (newdate.getMonth()</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">);<br>    document.all(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">doss_card.limit_month</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">).value </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> limtyear;<br>}<br><br></span><span style="COLOR: #0000ff">function</span><span style="COLOR: #000000"> culEndDate(){<br>    </span><span style="COLOR: #0000ff">var</span><span style="COLOR: #000000"> inputDate</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">document.all(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">rep_month_plan.start_date</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">).value;<br>    </span><span style="COLOR: #0000ff">var</span><span style="COLOR: #000000"> datePartArray</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">inputDate.split('</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">');<br>    </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">本月开始的W一?/span><span style="COLOR: #008000"><br></span><span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">var</span><span style="COLOR: #000000"> curFirstDay</span><span style="COLOR: #000000">=</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> Date(datePartArray[</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">],datePartArray[</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">]</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">);<br>    </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">下月开始的W一?/span><span style="COLOR: #008000"><br></span><span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">var</span><span style="COLOR: #000000"> nextFirstDay</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">addDate('</span><span style="COLOR: #000000">5</span><span style="COLOR: #000000">','</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">',curFirstDay);<br>    </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">下下月开始的W一?/span><span style="COLOR: #008000"><br></span><span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">var</span><span style="COLOR: #000000"> nnextFirstDay</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">addDate('</span><span style="COLOR: #000000">5</span><span style="COLOR: #000000">','</span><span style="COLOR: #000000">2</span><span style="COLOR: #000000">',curFirstDay);<br>    </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">本月最后一?/span><span style="COLOR: #008000"><br></span><span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">var</span><span style="COLOR: #000000"> curEndDay</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> Date(nextFirstDay.getTime()</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">);<br>    </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">下月最后一?/span><span style="COLOR: #008000"><br></span><span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">var</span><span style="COLOR: #000000"> nextEndDay</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> Date(nnextFirstDay.getTime()</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">);<br>    <br>    alert(nextEndDay);<br>    document.all(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">rep_month_plan.curEnddate</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">).value</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">curEndDay.getYear() </span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">' </span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">  (curEndDay.getMonth()</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">) </span><span style="COLOR: #000000">+</span><span style="COLOR: #000000"> '</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">' </span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">curEndDay.getDate();<br>    document.all(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">rep_month_plan.nextEnddate</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">).value</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">nextEndDay.getYear() </span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">' </span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">  (nextEndDay.getMonth()</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">) </span><span style="COLOR: #000000">+</span><span style="COLOR: #000000"> '</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">' </span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">nextEndDay.getDate();<br><br><br>}<br><br><br> </span><span style="COLOR: #0000ff">function</span><span style="COLOR: #000000"> addDate(type,NumDay,vdate){<br>         </span><span style="COLOR: #0000ff">var</span><span style="COLOR: #000000"> date</span><span style="COLOR: #000000">=</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> Date(vdate);<br>        type </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> parseInt(type) </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">cd </span><span style="COLOR: #008000"><br></span><span style="COLOR: #000000">         </span><span style="COLOR: #0000ff">var</span><span style="COLOR: #000000"> lIntval </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> parseInt(NumDay)</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">间隔</span><span style="COLOR: #008000"><br></span><span style="COLOR: #000000">            </span><span style="COLOR: #0000ff">switch</span><span style="COLOR: #000000">(type){<br>                 </span><span style="COLOR: #0000ff">case</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">6</span><span style="COLOR: #000000"> :</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">q?/span><span style="COLOR: #008000"><br></span><span style="COLOR: #000000">                  date.setYear(date.getYear() </span><span style="COLOR: #000000">+</span><span style="COLOR: #000000"> lIntval)<br>                  </span><span style="COLOR: #0000ff">break</span><span style="COLOR: #000000">;<br>                 </span><span style="COLOR: #0000ff">case</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">7</span><span style="COLOR: #000000"> :</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">季度</span><span style="COLOR: #008000"><br></span><span style="COLOR: #000000">                  date.setMonth(date.getMonth() </span><span style="COLOR: #000000">+</span><span style="COLOR: #000000"> (lIntval </span><span style="COLOR: #000000">*</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">3</span><span style="COLOR: #000000">) )<br>                  </span><span style="COLOR: #0000ff">break</span><span style="COLOR: #000000">;<br>                 </span><span style="COLOR: #0000ff">case</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">5</span><span style="COLOR: #000000"> :</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">?/span><span style="COLOR: #008000"><br></span><span style="COLOR: #000000">                  date.setMonth(date.getMonth() </span><span style="COLOR: #000000">+</span><span style="COLOR: #000000"> lIntval)<br>                  </span><span style="COLOR: #0000ff">break</span><span style="COLOR: #000000">;<br>                 </span><span style="COLOR: #0000ff">case</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">4</span><span style="COLOR: #000000"> :</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">?/span><span style="COLOR: #008000"><br></span><span style="COLOR: #000000">                  date.setDate(date.getDate() </span><span style="COLOR: #000000">+</span><span style="COLOR: #000000"> lIntval)<br>                  </span><span style="COLOR: #0000ff">break</span><span style="COLOR: #000000"><br>                 </span><span style="COLOR: #0000ff">case</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">3</span><span style="COLOR: #000000"> :</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">?/span><span style="COLOR: #008000"><br></span><span style="COLOR: #000000">                  date.setHours(date.getHours() </span><span style="COLOR: #000000">+</span><span style="COLOR: #000000"> lIntval)<br>                  </span><span style="COLOR: #0000ff">break</span><span style="COLOR: #000000"><br>                 </span><span style="COLOR: #0000ff">case</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">2</span><span style="COLOR: #000000"> :</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">?/span><span style="COLOR: #008000"><br></span><span style="COLOR: #000000">                  date.setMinutes(date.getMinutes() </span><span style="COLOR: #000000">+</span><span style="COLOR: #000000"> lIntval)<br>                  </span><span style="COLOR: #0000ff">break</span><span style="COLOR: #000000"><br>                 </span><span style="COLOR: #0000ff">case</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">1</span><span style="COLOR: #000000"> :</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">U?/span><span style="COLOR: #008000"><br></span><span style="COLOR: #000000">                  date.setSeconds(date.getSeconds() </span><span style="COLOR: #000000">+</span><span style="COLOR: #000000"> lIntval)<br>                  </span><span style="COLOR: #0000ff">break</span><span style="COLOR: #000000">;<br>                 </span><span style="COLOR: #0000ff">default</span><span style="COLOR: #000000">:<br>            <br>          } <br>    </span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> date;<br>    </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">return date.getYear() +'-' +  (date.getMonth()+1) + '-' +date.getDate()+ ' '+ date.getHours()+':'+date.getMinutes()+':'+date.getSeconds()</span><span style="COLOR: #008000"><br></span><span style="COLOR: #000000">  } <br><br></span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">--></span><span style="COLOR: #008000"><br></span><span style="COLOR: #000000"><br></span><span style="COLOR: #000000"></</span><span style="COLOR: #000000">SCRIPT</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #000000"></</span><span style="COLOR: #000000">HEAD</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">FORM METHOD</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">POST ACTION</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">""</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br>doss_card.usedate:</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">INPUT TYPE</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">text</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> NAME</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">doss_card.usedate</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> value</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">2007</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">06</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">><</span><span style="COLOR: #000000">BR</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br>doss_card.work_year:</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">INPUT TYPE</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">text</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> NAME</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">doss_card.work_year</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> value</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">6</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">><</span><span style="COLOR: #000000">BR</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br>doss_card.limit_month:</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">INPUT TYPE</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">text</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> NAME</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">doss_card.limit_month</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">><</span><span style="COLOR: #000000">BR</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">INPUT TYPE</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">button</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> value</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">'计算日期相加' onclick</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">'testAddDate()'</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">hr</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br>当前日期Q?/span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">INPUT TYPE</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">text</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> NAME</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">rep_month_plan.start_date</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> value</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">2007</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">06</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">12</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">><</span><span style="COLOR: #000000">BR</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br>当月末日期:</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">INPUT TYPE</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">text</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> NAME</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">rep_month_plan.curEnddate</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">><</span><span style="COLOR: #000000">BR</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br>下月末日期:</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">INPUT TYPE</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">text</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> NAME</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">rep_month_plan.nextEnddate</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">><</span><span style="COLOR: #000000">BR</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">INPUT TYPE</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">button</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> value</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">'计算月末日期' onclick</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">'culEndDate()'</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br><br><br></span><span style="COLOR: #000000"></</span><span style="COLOR: #000000">FORM</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">BODY</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br><br></span><span style="COLOR: #000000"></</span><span style="COLOR: #000000">BODY</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #000000"></</span><span style="COLOR: #000000">HTML</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span></div> <img src ="http://www.tkk7.com/mlw2000/aggbug/138250.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/mlw2000/" target="_blank">mlw2000</a> 2007-08-21 00:30 <a href="http://www.tkk7.com/mlw2000/archive/2007/08/21/138250.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>【{】《川》评?/title><link>http://www.tkk7.com/mlw2000/archive/2007/06/27/126558.html</link><dc:creator>mlw2000</dc:creator><author>mlw2000</author><pubDate>Wed, 27 Jun 2007 04:46:00 GMT</pubDate><guid>http://www.tkk7.com/mlw2000/archive/2007/06/27/126558.html</guid><wfw:comment>http://www.tkk7.com/mlw2000/comments/126558.html</wfw:comment><comments>http://www.tkk7.com/mlw2000/archive/2007/06/27/126558.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/mlw2000/comments/commentRss/126558.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/mlw2000/services/trackbacks/126558.html</trackback:ping><description><![CDATA[紫川----我最q说!告诉你一个普通少q在爱情与国家兴亡间的感人抉?一本让你看了一遍感?看了两遍偶尔心疼,看了三遍非哭不可的小?q里有世间最真挚的友?q里有不惜一切的爱情,q里更有越所有种族的真情,,,有h说川是一部史?有h说川是一部情感的癄全书,q有紫川只是淌在生命中的切许感?.我唯一惌的是:金庸,古龙,老猪 <img src ="http://www.tkk7.com/mlw2000/aggbug/126558.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/mlw2000/" target="_blank">mlw2000</a> 2007-06-27 12:46 <a href="http://www.tkk7.com/mlw2000/archive/2007/06/27/126558.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Java基础问题:汉字问题深入谈[转]http://www.tkk7.com/mlw2000/archive/2007/03/21/105143.htmlmlw2000mlw2000Wed, 21 Mar 2007 01:18:00 GMThttp://www.tkk7.com/mlw2000/archive/2007/03/21/105143.htmlhttp://www.tkk7.com/mlw2000/comments/105143.htmlhttp://www.tkk7.com/mlw2000/archive/2007/03/21/105143.html#Feedback0http://www.tkk7.com/mlw2000/comments/commentRss/105143.htmlhttp://www.tkk7.com/mlw2000/services/trackbacks/105143.html一、主题:关于JAVA的中文问题?
    JAVA的中文问题比较突出,主要表现在控刉板输出,JSP面输出和数据库讉K上。本文尽量避开字体问题Q而只谈编码。通过本文Q你可以了解JAVA中文问题的由来,问题的解x法,其中提了一下用JDBC讉K数据库的Ҏ(gu)。?

二、问题描qͼ 
1Q在中文W2000中文H口~译和运行,用的是国际版的JDKQ连接的是中文W2000下的Cp936~码的SQL SERVER数据库: 

J:exercisedemoencodeHelloWorld>make 
   Created by XCompiler. PhiloSoft All Rights Reserved. 
   Wed May 30 02:54:45 CST 2001 

J:exercisedemoencodeHelloWorld>run 
   Created by XRunner. PhiloSoft All Rights Reserved. 
   Wed May 30 02:51:33 CST 2001 
中文 
[B@7bc8b569 
[B@7b08b569 
[B@7860b569 
中文 
中文 
???? 
中文 
中文 
???? 
?? 
?? 
?? 

2Q如果在中文W2000的西文窗口(~码?37Q下~译Q用JAVAq行则由于无字体而无法正常显C,如果象上面一样在中文W2000的中文窗口运行,输出为: 

J:exercisedemoencodeHelloWorld>run 
   Created by XRunner. PhiloSoft All Rights Reserved. 
   Wed May 30 02:51:33 CST 2001 
???? 
[B@7bc0b66a 
[B@7b04b66a 
[B@7818b66a 
???? 
???? 
???? 
???? 
???? 
???? 
中文 
中文 
???? 

三)分析 

1Q出现有qQ也是Q)。由于只出现Q而没出现方框,说明只是~码有问题,而不是字体问题?在编码中Q如果从一U字W集转换到别一U字W集Q比较典型的是从GB2312转换到ISO8859_1Q即ASCIIQ,那么很多汉字Q半个汉字)是无法映到西文字符中去的,在这U情形下Q系l就把这些字W用Q代ѝ同P也存在小字符集无法到大字W集的情况,具体原因q里׃详谈了。?

2Q出C中文环境~译Q中文环境运行时汉字昄有正也有不正确的地方,同样Q在西文环境下编译,在中文环境下q行时也出现cM情况。这是由于自动(默认Q或手工Q也new String(bytes[,encode])和bytes getBytes([encode])Q{码的l果。?

2.1Q在JAVA源文?->JAVAC-->Class-->Java-->getBytes()-->new String()-->昄的过E中Q每一步都有编码的转换q程Q这个过EL存在的,只是有的时候用默认的参数进行。下面我们一步一步分析ؓ什么出C面的情Ş。?

2.2Q这里是源代码: 

HelloWorld.java: 
------------------------ 
public class HelloWorld 

    public static void main(String[] argv)
    { 
        try
        { 
            System.out.println("1:"+"中文");
            System.out.println("2:"+"中文".getBytes());
            System.out.println("3:"+"中文".getBytes("GB2312")); 
            System.out.println("4:"+"中文".getBytes("ISO8859_1"));

            System.out.println("5:"+new String("中文".getBytes()));//5 
            System.out.println("6:"+new String("中文".getBytes(),"GB2312")); 
            System.out.println("7:"+new String("中文".getBytes(),"ISO8859_1"));

            System.out.println("8:"+new String("中文".getBytes("GB2312")));//8 
            System.out.println("9:"+new String("中文".getBytes("GB2312"),"GB2312"));
            System.out.println("10:"+new String("中文".getBytes("GB2312"),"ISO8859_1"));

            System.out.println("11:"+new String("中文".getBytes("ISO8859_1")));//11 
            System.out.println("12:"+new String("中文".getBytes("ISO8859_1"),"GB2312"));
            System.out.println("13:"+new String("中文".getBytes("ISO8859_1"),"ISO8859_1"));
        } 
        catch(Exception e)
        { 
            e.printStackTrace(); 
        } 
  } 

Z方便赯Q在每个转换的后面加了操作序P分别?,2,...,13。?

2.3Q需要说明的是,JAVAC是以pȝ默认~码d源文Ӟ然后按UNICODEq行~码的。在JAVAq行的时候,JAVA也是采用UNICODE~码的,q且默认输入和输出的都是操作pȝ的默认编码,也就是说在new String(bytes[,encode])中,pȝ认ؓ输入的是~码为encode的字节流Q换句话_如果按encode来翻译bytes才能得到正确的结果,q个l果最后要在JAVA中保存,它还是要从这个encode转换成UnicodeQ也是说有bytes-->encode字符-->Unicode字符的{换;而在String.getBytes([encode])中,pȝ要做一个Unicode字符-->encode字符-->bytes的{换。?

在这个例子中Q除那个英文H口~码的时候除外,其实情Ş下默认编码都是GBKQ在本例中,我们暂且把GBK和GB2312{同看待Q。?

2.4Q由于在未指明在上面的两个用代码实现的{换中Q如果未指定encodeQ系l将采用默认的编码(q里为GBKQ,我们认ؓ上面?,6,7?,9,10是一LQ???1?2也是一LQ所以我们在讨论中将只讨?,9,10,12,13。其中的2,3,4只是用于试Q不在我们的讨论范围之内。?

2.5Q下面我们来跟踪E序中的“中”字的{换历E,我们先说在中文窗口下作的~译和运行过E,注意在下面的字母下标中,我有意识C用了一些数字,以表C相同,相异q是相关2.5.1)我们先以上面?3个代码段中的的代?ZQ?

步骤 内容 地点 说明 
01Q?C1 HelloWorld.java C1泛指一个GBK字符 
02Q?U1 JAVACd U1泛指一个Unicode字符 
03Q?C1 getBytes()W一?JAVA先和操作pȝ交流 
04Q?B1,B2 getBytes()W二?然后q回字节数组 
05Q?C1 new String()W一?JAVA先和操作pȝ交流 
06Q?U1 new String()W二?然后q回字符 
07Q?C1 println(String) 能显C“中”字Q内容和原来的相同?

2.5.2Q然后再以代码段10ZQ我们注意到只是Q?

步骤 内容 地点 说明 
01Q?C1 HelloWorld.java C1泛指一个GBK字符 
02Q?U1 JAVACd U1泛指一个Unicode字符 
03Q?C1 getBytes()W一?JAVA先和操作pȝ交流 
04Q?B1,B2 getBytes()W二?然后q回字节数组 
05Q?C3,C4 new String()W一?JAVA先和操作pȝ交流Q这时解析错误?
06Q?U5,U6 new String()W二?然后q回字符 
07Q?C3,C4 println(String) ׃中字l分成了两半Q在ISO8859_1中刚好也没有字符 

能映上Q所以显CZؓ??”。在上面的示例中Q?
“中文”两个字显CZؓ“?Q?Q”?
2.5.3Q在完全中文模式下的其它情ŞcMQ我׃多说了?

2.6Q我们接着看ؓ什么在西文DOSH口下编译出来的cd中文H口下也出现cM情ŞQ特别是Z么居然有的情形下q能正确昄汉字。?

2.6.1Q我们还是先以代码段9ZQ?

步骤 内容 地点 说明 
01Q?C1C2 HelloWorld.java C1C2分别泛指一个ISO8859_1字符Q“中”字被拆开 
02Q?U3U4 JAVACd U1U2泛指一个Unicode字符 
03Q?C5C6 getBytes()W一?JAVA先和操作pȝ交流Q这时解析错误?
04Q?B5B6B7B8 getBytes()W二?然后q回字节数组 
05Q?C5C6 new String()W一?JAVA先和操作pȝ交流 
06Q?U3U4 new String()W二?然后q回字符 
07Q?C5C6 println(String) 虽然同是两个字符Q但已不是最初的“两个ISO8859_1字?

W”,而是“两个BGK字符”,“中”显C成了“?Q”?
而“中文”就昄成了“?Q?Q”?

2.6.2Q下面我们以代码D?2ZQ因为它能正显C汉字?

步骤 内容 地点 说明 

01Q?C1C2 HelloWorld.java C1C2分别泛指一个ISO8859_1字符Q“中”字被拆开 
02Q?U3U4 JAVACd U1U2泛指一个Unicode字符
03Q?C1C2 getBytes()W一?JAVA先和操作pȝ交流Q注意还是正的哦!Q?
04Q?B5B6 getBytes()W二?然后q回字节数组Q这是很关键的一步!Q?
05Q?C12 new String()W一?JAVA先和操作pȝ交流Q这是更关键的一步,JAVA已经知道B5B6要解析成一个汉字!Q?
06Q?U7 new String()W二?然后q回字符Q真是一个项两!U7包含了U3U4的信息) 
07Q?C12 println(String) q就原来的“中”字Q很委屈被JAVAC冤枉了一回,不过被程序员拨ؕ反正了一下!当然Q“中文”两个字都能正确昄了! 

3Q那Z么有的时候用JDBC的?
new String(Recordset.getBytes(int)[,encode]) 
Recordset.getSting(int) 
Recordset.setBytes(String.getBytes([encode])) 
和?
Recordset.setString(String) 
的时候会出现q了呢Q?

其实问题出现在~写JDBC的的也考虑了编码问题,它从数据库读取数据后Q可能自作主张做了一个从GB2312Q默认编码)到Unicode的{换,我的q个WebLogic For SQL Server的JDBC Driver是q样的,当我d串的时候,发出d的不是正的汉字Q可恨的是我却可以直接写汉字字串Q这让h多少有点难以接受Q?
也就是说Q我们不得不在读或写的时候进行{码,管q个转码有的时候不是那么明显,q是因ؓ我们使用了默认的~码q行转码。JDBC Driver所做的操作Q我们只有进入到源代码内部才能清楚,大家认ؓ呢?



mlw2000 2007-03-21 09:18 发表评论
]]>
如何修改eclipse中的"Mark occurence highlight colour"Q即“标记当前高亮”的颜色Q[转]http://www.tkk7.com/mlw2000/archive/2007/03/17/104386.htmlmlw2000mlw2000Fri, 16 Mar 2007 16:31:00 GMThttp://www.tkk7.com/mlw2000/archive/2007/03/17/104386.htmlhttp://www.tkk7.com/mlw2000/comments/104386.htmlhttp://www.tkk7.com/mlw2000/archive/2007/03/17/104386.html#Feedback6http://www.tkk7.com/mlw2000/comments/commentRss/104386.htmlhttp://www.tkk7.com/mlw2000/services/trackbacks/104386.html搜了半天l于扑ֈ了:
Hi

The 'mark occurences' feature is really useful, unfortunately it is a light shade of yellow and the window colour is a light beige, therefore it doesn't show up. The only way I can find the occurences is to move my mouse cursor up and down the margin until it becomes a hand.

I have looked all through all the preferences and I can't see how to change that colour. Is it a system colour, or FDT, and is it actually possible to change?

Any help gratefully appreciated.
Jake


============================================================
Here is the way you can change the color:

1. Select the Menu Window->Preferences
2. Select in the tree General->Editors->Text Editors->Annotations
3. Select AS Occurence
4. At the right there is a small Button Color, klick it and select a new color.


刚刚试过Qeclipse 3.20能用此方法修?/span>


mlw2000 2007-03-17 00:31 发表评论
]]>
八种不可q随的老板http://www.tkk7.com/mlw2000/archive/2006/12/03/85153.htmlmlw2000mlw2000Sun, 03 Dec 2006 02:18:00 GMThttp://www.tkk7.com/mlw2000/archive/2006/12/03/85153.htmlhttp://www.tkk7.com/mlw2000/comments/85153.htmlhttp://www.tkk7.com/mlw2000/archive/2006/12/03/85153.html#Feedback0http://www.tkk7.com/mlw2000/comments/commentRss/85153.htmlhttp://www.tkk7.com/mlw2000/services/trackbacks/85153.html阅读全文

mlw2000 2006-12-03 10:18 发表评论
]]>
职场人必看的12个寓a故事http://www.tkk7.com/mlw2000/archive/2006/12/03/85152.htmlmlw2000mlw2000Sun, 03 Dec 2006 02:16:00 GMThttp://www.tkk7.com/mlw2000/archive/2006/12/03/85152.htmlhttp://www.tkk7.com/mlw2000/comments/85152.htmlhttp://www.tkk7.com/mlw2000/archive/2006/12/03/85152.html#Feedback0http://www.tkk7.com/mlw2000/comments/commentRss/85152.htmlhttp://www.tkk7.com/mlw2000/services/trackbacks/85152.html阅读全文

mlw2000 2006-12-03 10:16 发表评论
]]>
Struts? "load-on-startup "参数的意?/title><link>http://www.tkk7.com/mlw2000/archive/2006/10/16/75372.html</link><dc:creator>mlw2000</dc:creator><author>mlw2000</author><pubDate>Mon, 16 Oct 2006 03:17:00 GMT</pubDate><guid>http://www.tkk7.com/mlw2000/archive/2006/10/16/75372.html</guid><wfw:comment>http://www.tkk7.com/mlw2000/comments/75372.html</wfw:comment><comments>http://www.tkk7.com/mlw2000/archive/2006/10/16/75372.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/mlw2000/comments/commentRss/75372.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/mlw2000/services/trackbacks/75372.html</trackback:ping><description><![CDATA[     摘要: Struts? "load-on-startup "参数的意?nbsp; <a href='http://www.tkk7.com/mlw2000/archive/2006/10/16/75372.html'>阅读全文</a><img src ="http://www.tkk7.com/mlw2000/aggbug/75372.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/mlw2000/" target="_blank">mlw2000</a> 2006-10-16 11:17 <a href="http://www.tkk7.com/mlw2000/archive/2006/10/16/75372.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>лǵվܻԴȤ</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> վ֩ģ壺 <a href="http://bjhuicui.com" target="_blank">͹Ƶ</a>| <a href="http://dghxm168.com" target="_blank">ҹ߹ۿ</a>| <a href="http://whxhjc.com" target="_blank">ѱ̬Ƶַվ </a>| <a href="http://gujingyuye.com" target="_blank">Ƭ߹ۿ</a>| <a href="http://46339cc.com" target="_blank">va߹ۿ</a>| <a href="http://4438xa48.com" target="_blank">Ʒ㽶߹ۿ</a>| <a href="http://zzttt04.com" target="_blank">߹ۿƵ</a>| <a href="http://aa7852.com" target="_blank">ëƬѹۿƵ</a>| <a href="http://43caopen.com" target="_blank">˵avһ2</a>| <a href="http://jimeng-99.com" target="_blank">ȫɫƴɫƬѾþ</a>| <a href="http://0102008.com" target="_blank">˳վ߹ۿ</a>| <a href="http://www-5453.com" target="_blank">޵һƷպ߲</a>| <a href="http://bjowj.com" target="_blank">һëƬѲһ</a>| <a href="http://tvnxl.com" target="_blank">޾Ʒרþþ</a>| <a href="http://3333kkkk.com" target="_blank">þùƷվ</a>| <a href="http://km9c.com" target="_blank">aƵ߹ۿ</a>| <a href="http://044242.com" target="_blank">պѵӰ</a>| <a href="http://038037.com" target="_blank">þþþƷƵѹۿ </a>| <a href="http://hnqkzj.com" target="_blank">ۺۺͼ</a>| <a href="http://xjkakatong.com" target="_blank">xxƵѹۿ</a>| <a href="http://8k91.com" target="_blank">͵޹</a>| <a href="http://zf91.com" target="_blank">޾ƷۺϾþһ</a>| <a href="http://zz4466.com" target="_blank">Ƶ</a>| <a href="http://777vip8.com" target="_blank">ۺһƷþ</a>| <a href="http://43sihu.com" target="_blank">õĻ2019</a>| <a href="http://777vip8.com" target="_blank">˾ѹۿ</a>| <a href="http://6363388.com" target="_blank">ƷѾƷ</a>| <a href="http://www97544.com" target="_blank">18ڵվ</a>| <a href="http://jhmydxx.com" target="_blank">avһ</a>| <a href="http://nh-car.com" target="_blank">Ʒ޳ɦɦ߹ۿ </a>| <a href="http://gttest5.com" target="_blank">ɫþþۺ</a>| <a href="http://blzcn.com" target="_blank">18Ůվ</a>| <a href="http://yjszhukao.com" target="_blank">պƷרձ</a>| <a href="http://580jp.com" target="_blank">޾ƷۺϾþ</a>| <a href="http://www621f.com" target="_blank">ٸһ</a>| <a href="http://tv886.com" target="_blank">޹AVӰԺ</a>| <a href="http://chuoche.com" target="_blank">޾ƷĻ</a>| <a href="http://www-554949.com" target="_blank">69ʽƵ</a>| <a href="http://142121.com" target="_blank">һһdvd߹ۿƵ </a>| <a href="http://57798b.com" target="_blank">AVþþƷ</a>| <a href="http://555yyyy.com" target="_blank">ëƬ߿Ƭ˿Ƶ</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>