<?xml version="1.0" encoding="utf-8"?><!-- generator="b2evolution/2.4.2" -->
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>tech blog</title>
		<link>http://blogs.dengsoft.com/index.php/tech/</link>
		<description></description>
		<language>en-US</language>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<admin:generatorAgent rdf:resource="http://b2evolution.net/?v=2.4.2"/>
		<ttl>60</ttl>
				<item>
			<title>Java String Split method issues with Special characters</title>
			<link>http://blogs.dengsoft.com/index.php/tech/java/java-spring-split-issues-with-special-ch</link>
			<pubDate>Wed, 20 May 2009 20:52:21 +0000</pubDate>			<dc:creator>dengadmin</dc:creator>
			<category domain="main">java</category>			<guid isPermaLink="false">106@http://blogs.dengsoft.com/</guid>
						<description>&lt;p&gt;IMPORTANT : Some special characters needs to be escaped while providing them as delimeters like &quot;.&quot; and &quot;|&quot;.&lt;/p&gt;

&lt;div style=&quot;float:right; clear:both; margin:5px;&quot;&gt;

&lt;!-- Paste from here... --&gt;
&lt;div style=&quot;border:1px solid red; width:150px; padding:3px;&quot;&gt;

&lt;b&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7291771391858100&quot;;
/* 336x280, created 9/19/08 */
/* google_ad_slot = &quot;9808987940&quot;;*/

/* from chinesepronunciation */
google_ad_slot = &quot;3407293812&quot;;

google_ad_width = 120;
google_ad_height = 240;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;
&lt;/B&gt;

&lt;!--strong&gt;You must copy/paste your AdSense code in here.&lt;/strong&gt; You can do this on the Plugin config page.--&gt;

&lt;/div&gt;
&lt;!-- ...to here --&gt;

&lt;/div&gt;

&lt;p&gt;[codespan]&lt;/p&gt;

&lt;p&gt;System.out.println(&quot;&quot;);&lt;/p&gt;

&lt;p&gt;str = &quot;one.two.three&quot;;&lt;/p&gt;

&lt;p&gt;delimeter = &quot;\\.&quot;;&lt;/p&gt;

&lt;p&gt;temp = str.split(delimeter);&lt;/p&gt;

&lt;p&gt;for(int i =0; i &lt; temp.length ; i++)&lt;/p&gt;

&lt;p&gt;System.out.println(temp[i]);&lt;/p&gt;


&lt;p&gt;String field = &quot;Asset_Class|text||||true|;&quot;&lt;br /&gt;
String [] st_field = field.split(&quot;\\|&quot;);&lt;br /&gt;
if(st_field!=null) {&lt;br /&gt;
	log.info(&quot;^^^^^^^^st_field vals 1:&quot;+st_field[0]);&lt;br /&gt;
}&lt;br /&gt;
[/codespan]&lt;/p&gt;

&lt;p&gt;If you do not put escape characters it will probably returns character arrays like this:&lt;/p&gt;

&lt;p&gt;[codespan]&lt;/p&gt;

&lt;p&gt;^^^^^^^^st_field vals:[, A, s, s, e, t, _, C, l, a, s, s, |, t, e, x, t, |, |, |, |, t, r, u, e, |]&lt;/p&gt;

&lt;p&gt;[/codespan]&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://blogs.dengsoft.com/index.php/tech/java/java-spring-split-issues-with-special-ch&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>IMPORTANT : Some special characters needs to be escaped while providing them as delimeters like "." and "|".</p>

<div style="float:right; clear:both; margin:5px;">

<!-- Paste from here... -->
<div style="border:1px solid red; width:150px; padding:3px;">

<b>
<script type="text/javascript"><!--
google_ad_client = "pub-7291771391858100";
/* 336x280, created 9/19/08 */
/* google_ad_slot = "9808987940";*/

/* from chinesepronunciation */
google_ad_slot = "3407293812";

google_ad_width = 120;
google_ad_height = 240;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</B>

<!--strong>You must copy/paste your AdSense code in here.</strong> You can do this on the Plugin config page.-->

</div>
<!-- ...to here -->

</div>

<p>[codespan]</p>

<p>System.out.println("");</p>

<p>str = "one.two.three";</p>

<p>delimeter = "\\.";</p>

<p>temp = str.split(delimeter);</p>

<p>for(int i =0; i < temp.length ; i++)</p>

<p>System.out.println(temp[i]);</p>


<p>String field = "Asset_Class|text||||true|;"<br />
String [] st_field = field.split("\\|");<br />
if(st_field!=null) {<br />
	log.info("^^^^^^^^st_field vals 1:"+st_field[0]);<br />
}<br />
[/codespan]</p>

<p>If you do not put escape characters it will probably returns character arrays like this:</p>

<p>[codespan]</p>

<p>^^^^^^^^st_field vals:[, A, s, s, e, t, _, C, l, a, s, s, |, t, e, x, t, |, |, |, |, t, r, u, e, |]</p>

<p>[/codespan]</p><div class="item_footer"><p><small><a href="http://blogs.dengsoft.com/index.php/tech/java/java-spring-split-issues-with-special-ch">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://blogs.dengsoft.com/index.php/tech/java/java-spring-split-issues-with-special-ch#comments</comments>
		</item>
				<item>
			<title>A simple and clean login solution using html legend and fieldset</title>
			<link>http://blogs.dengsoft.com/index.php/tech/main-3/a-simple-and-clean-login-solution-using-</link>
			<pubDate>Tue, 19 May 2009 15:45:17 +0000</pubDate>			<dc:creator>dengadmin</dc:creator>
			<category domain="main">Uncategorized</category>			<guid isPermaLink="false">105@http://blogs.dengsoft.com/</guid>
						<description>&lt;p&gt;A simple and clean login solution using html legend and fieldset:&lt;/p&gt;

&lt;div style=&quot;float:right; clear:both; margin:5px;&quot;&gt;

&lt;!-- Paste from here... --&gt;
&lt;div style=&quot;border:1px solid red; width:150px; padding:3px;&quot;&gt;

&lt;b&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7291771391858100&quot;;
/* 336x280, created 9/19/08 */
/* google_ad_slot = &quot;9808987940&quot;;*/

/* from chinesepronunciation */
google_ad_slot = &quot;3407293812&quot;;

google_ad_width = 120;
google_ad_height = 240;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;
&lt;/B&gt;

&lt;!--strong&gt;You must copy/paste your AdSense code in here.&lt;/strong&gt; You can do this on the Plugin config page.--&gt;

&lt;/div&gt;
&lt;!-- ...to here --&gt;

&lt;/div&gt;
&lt;p&gt;[codespan]&lt;/p&gt;&lt;p class=&quot;amcode&quot;&gt;Code:&lt;/p&gt;&lt;div class=&quot;codeblock amc_code amc_short&quot;&gt;&lt;table&gt;&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;&amp;lt;fieldset&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc2&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;&amp;lt;legend&amp;gt;Log In&amp;lt;/legend&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc3&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;&amp;lt;table cellspacing=&quot;0&quot; cellpadding=&quot;10&quot; border=&quot;0&quot;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc4&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc5&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;&amp;lt;tr&amp;gt;&amp;lt;td align=&quot;center&quot; valign=&quot;middle&quot;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc6&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc7&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;&amp;lt;font size=&quot;2&quot; color=&quot;#0000cd&quot; face=&quot;verdana&quot;&amp;gt;&amp;lt;b&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc8&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;User Name:&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc9&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc0&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;td align=&quot;center&quot; valign=&quot;middle&quot;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;&amp;lt;input type=&quot;text&quot; width=&quot;20&quot;&amp;gt;&amp;lt;/input&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc2&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;&amp;lt;tr&amp;gt;&amp;lt;td align=&quot;center&quot; valign=&quot;middle&quot;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc3&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;&amp;lt;font size=&quot;2&quot; color=&quot;#0000cd&quot; face=&quot;verdana&quot;&amp;gt;&amp;lt;b&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc4&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;Password:&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc5&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc6&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;td align=&quot;center&quot; valign=&quot;middle&quot;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc7&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;&amp;lt;input type=&quot;password&quot; width=&quot;20&quot;/&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc8&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc9&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;&amp;lt;tr&amp;gt;&amp;lt;td align=&quot;center&quot; valign=&quot;middle&quot; colspan=&quot;2&quot;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc0&quot;&gt;&lt;div class=&quot;amc2&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;&amp;lt;input type=&quot;submit&quot; value=&quot;Submit&quot;/&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;div class=&quot;amc2&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc2&quot;&gt;&lt;div class=&quot;amc2&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;&amp;lt;/table&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc3&quot;&gt;&lt;div class=&quot;amc2&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;&amp;lt;/fieldset&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/div&gt;&lt;p&gt;[/codespan]&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://blogs.dengsoft.com/index.php/tech/main-3/a-simple-and-clean-login-solution-using-&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>A simple and clean login solution using html legend and fieldset:</p>

<!-- Adsense block #4 not displayed since it exceed the limit of 3 -->
<p>[codespan]</p><p class="amcode">Code:</p><div class="codeblock amc_code amc_short"><table><tr class="amc_code_odd"><td class="amc_line"><div class="amc1"></div></td><td><code><span class="amc_default">&lt;fieldset&gt;</span></code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc2"></div></td><td><code><span class="amc_default">&lt;legend&gt;Log In&lt;/legend&gt;</span></code></td></tr>
<tr class="amc_code_odd"><td class="amc_line"><div class="amc3"></div></td><td><code><span class="amc_default">&lt;table cellspacing="0" cellpadding="10" border="0"&gt;</span></code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc4"></div></td><td><code>&nbsp;</code></td></tr>
<tr class="amc_code_odd"><td class="amc_line"><div class="amc5"></div></td><td><code><span class="amc_default">&lt;tr&gt;&lt;td align="center" valign="middle"&gt;</span></code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc6"></div></td><td><code>&nbsp;</code></td></tr>
<tr class="amc_code_odd"><td class="amc_line"><div class="amc7"></div></td><td><code><span class="amc_default">&lt;font size="2" color="#0000cd" face="verdana"&gt;&lt;b&gt;</span></code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc8"></div></td><td><code><span class="amc_default">User Name:</span></code></td></tr>
<tr class="amc_code_odd"><td class="amc_line"><div class="amc9"></div></td><td><code><span class="amc_default">&lt;/b&gt;&lt;/font&gt;</span></code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc0"><div class="amc1"></div></div></td><td><code><span class="amc_default">&lt;/td&gt;&lt;td align="center" valign="middle"&gt;</span></code></td></tr>
<tr class="amc_code_odd"><td class="amc_line"><div class="amc1"><div class="amc1"></div></div></td><td><code><span class="amc_default">&lt;input type="text" width="20"&gt;&lt;/input&gt;&lt;/td&gt;&lt;/tr&gt;</span></code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc2"><div class="amc1"></div></div></td><td><code><span class="amc_default">&lt;tr&gt;&lt;td align="center" valign="middle"&gt;</span></code></td></tr>
<tr class="amc_code_odd"><td class="amc_line"><div class="amc3"><div class="amc1"></div></div></td><td><code><span class="amc_default">&lt;font size="2" color="#0000cd" face="verdana"&gt;&lt;b&gt;</span></code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc4"><div class="amc1"></div></div></td><td><code><span class="amc_default">Password:</span></code></td></tr>
<tr class="amc_code_odd"><td class="amc_line"><div class="amc5"><div class="amc1"></div></div></td><td><code><span class="amc_default">&lt;/b&gt;&lt;/font&gt;</span></code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc6"><div class="amc1"></div></div></td><td><code><span class="amc_default">&lt;/td&gt;&lt;td align="center" valign="middle"&gt;</span></code></td></tr>
<tr class="amc_code_odd"><td class="amc_line"><div class="amc7"><div class="amc1"></div></div></td><td><code><span class="amc_default">&lt;input type="password" width="20"/&gt;</span></code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc8"><div class="amc1"></div></div></td><td><code><span class="amc_default">&lt;/td&gt;&lt;/tr&gt;</span></code></td></tr>
<tr class="amc_code_odd"><td class="amc_line"><div class="amc9"><div class="amc1"></div></div></td><td><code><span class="amc_default">&lt;tr&gt;&lt;td align="center" valign="middle" colspan="2"&gt;</span></code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc0"><div class="amc2"></div></div></td><td><code><span class="amc_default">&lt;input type="submit" value="Submit"/&gt;&lt;/td&gt;&lt;/tr&gt;</span></code></td></tr>
<tr class="amc_code_odd"><td class="amc_line"><div class="amc1"><div class="amc2"></div></div></td><td><code>&nbsp;</code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc2"><div class="amc2"></div></div></td><td><code><span class="amc_default">&lt;/table&gt;</span></code></td></tr>
<tr class="amc_code_odd"><td class="amc_line"><div class="amc3"><div class="amc2"></div></div></td><td><code><span class="amc_default">&lt;/fieldset&gt;</span></code></td></tr>
</table></div><p>[/codespan]</p><div class="item_footer"><p><small><a href="http://blogs.dengsoft.com/index.php/tech/main-3/a-simple-and-clean-login-solution-using-">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://blogs.dengsoft.com/index.php/tech/main-3/a-simple-and-clean-login-solution-using-#comments</comments>
		</item>
				<item>
			<title>Why SAX can NOT parse a large XML file using my JDK6?</title>
			<link>http://blogs.dengsoft.com/index.php/tech/main-3/why-sax-can-i-parse-a-large-xml-file</link>
			<pubDate>Sun, 10 May 2009 03:45:36 +0000</pubDate>			<dc:creator>dengadmin</dc:creator>
			<category domain="main">Uncategorized</category>
<category domain="alt">java</category>			<guid isPermaLink="false">101@http://blogs.dengsoft.com/</guid>
						<description>&lt;p&gt;Those days I have been struggling with jvm outofmemory error: java heap size issue. I did everything I can, like increase heap size etc.. but nothing could help.&lt;/p&gt;

&lt;p&gt;I even tweaked my application from using DOM to SAX, reset object to null after processing, call System.gc() but it did not help either.&lt;/p&gt;

&lt;p&gt;The application runs file with a test, small, file, but if file size is about 30MB, it crahses with outofmemory error.&lt;/p&gt;

&lt;p&gt;So I concluded it is NOT my app issue, or my heap size is too small, etc.., it is JDK6 issue-actually it is, and is introduced since upgrading from JDK 5 to 6!&lt;/p&gt;

&lt;p&gt;Here is the related bug report.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6536111&quot;&gt;http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6536111&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It was fixed in JDK update 14 Build b06. Downloaded from here and install it should fix the issue. At least it solved my problem.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://download.java.net/jdk6/index.html&quot;&gt;http://download.java.net/jdk6/index.html&lt;/a&gt;&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://blogs.dengsoft.com/index.php/tech/main-3/why-sax-can-i-parse-a-large-xml-file&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>Those days I have been struggling with jvm outofmemory error: java heap size issue. I did everything I can, like increase heap size etc.. but nothing could help.</p>

<p>I even tweaked my application from using DOM to SAX, reset object to null after processing, call System.gc() but it did not help either.</p>

<p>The application runs file with a test, small, file, but if file size is about 30MB, it crahses with outofmemory error.</p>

<p>So I concluded it is NOT my app issue, or my heap size is too small, etc.., it is JDK6 issue-actually it is, and is introduced since upgrading from JDK 5 to 6!</p>

<p>Here is the related bug report.</p>

<p><a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6536111">http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6536111</a></p>

<p>It was fixed in JDK update 14 Build b06. Downloaded from here and install it should fix the issue. At least it solved my problem.</p>

<p><a href="http://download.java.net/jdk6/index.html">http://download.java.net/jdk6/index.html</a></p><div class="item_footer"><p><small><a href="http://blogs.dengsoft.com/index.php/tech/main-3/why-sax-can-i-parse-a-large-xml-file">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://blogs.dengsoft.com/index.php/tech/main-3/why-sax-can-i-parse-a-large-xml-file#comments</comments>
		</item>
				<item>
			<title>GlassFish Thread Dump</title>
			<link>http://blogs.dengsoft.com/index.php/tech/main-3/glassfish-thread-dump</link>
			<pubDate>Thu, 07 May 2009 15:49:45 +0000</pubDate>			<dc:creator>dengadmin</dc:creator>
			<category domain="main">Uncategorized</category>			<guid isPermaLink="false">100@http://blogs.dengsoft.com/</guid>
						<description>&lt;p&gt;Use jps to find out your glassfish pid: (or ls -al GLASSFISH_HOME/yourdomain/config to find a _sun_com*.pid file)&lt;/p&gt;

&lt;p&gt;root@os-T5120-64:/usr/local/openstream/log# jps&lt;br /&gt;
5645 Jps&lt;br /&gt;
1427 AssetServer&lt;br /&gt;
5521 PELaunch&lt;/p&gt;

&lt;p&gt;Note GlassFish appears as &quot;PELaunch&quot;.&lt;/p&gt;

&lt;p&gt;Next, run kill -3 PID&lt;/p&gt;

&lt;p&gt;Then look into GLASSFISH_HOME/domains/yourdomain/logs/jvm.log&lt;/p&gt;

&lt;p&gt;Note: dont mv jvm.log, instead do acopy first then &gt;jvm.log if you wanted to save different snapshots as separate files.&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://blogs.dengsoft.com/index.php/tech/main-3/glassfish-thread-dump&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>Use jps to find out your glassfish pid: (or ls -al GLASSFISH_HOME/yourdomain/config to find a _sun_com*.pid file)</p>

<p>root@os-T5120-64:/usr/local/openstream/log# jps<br />
5645 Jps<br />
1427 AssetServer<br />
5521 PELaunch</p>

<p>Note GlassFish appears as "PELaunch".</p>

<p>Next, run kill -3 PID</p>

<p>Then look into GLASSFISH_HOME/domains/yourdomain/logs/jvm.log</p>

<p>Note: dont mv jvm.log, instead do acopy first then >jvm.log if you wanted to save different snapshots as separate files.</p><div class="item_footer"><p><small><a href="http://blogs.dengsoft.com/index.php/tech/main-3/glassfish-thread-dump">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://blogs.dengsoft.com/index.php/tech/main-3/glassfish-thread-dump#comments</comments>
		</item>
				<item>
			<title>Joomla 1.5 copyright info: corresponding PHP code</title>
			<link>http://blogs.dengsoft.com/index.php/tech/main-3/title-2</link>
			<pubDate>Fri, 09 Jan 2009 03:05:57 +0000</pubDate>			<dc:creator>dengadmin</dc:creator>
			<category domain="main">Uncategorized</category>			<guid isPermaLink="false">68@http://blogs.dengsoft.com/</guid>
						<description>&lt;p&gt;In Joomla 1.5, copyright info appears at the footer of the page:&lt;/p&gt;

&lt;p class=&quot;amcode&quot;&gt;Code:&lt;/p&gt;&lt;div class=&quot;codeblock amc_code amc_short&quot;&gt;&lt;table&gt;&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;Joomla! is Free Software released under the GNU/GPL License.&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;It is actually controlled by &lt;/p&gt;

&lt;p class=&quot;amcode&quot;&gt;Code:&lt;/p&gt;&lt;div class=&quot;codeblock amc_code amc_short&quot;&gt;&lt;table&gt;&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;/home/yourhome/public_html/yourwebsite.com/jml15/modules/mod_footer/tmpl/default.php&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The corresponding php code is:&lt;/p&gt;

&lt;p class=&quot;amcode&quot;&gt;PHP:&lt;/p&gt;&lt;div class=&quot;codeblock amc_php amc_short&quot;&gt;&lt;table&gt;&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_html&quot;&gt;&lt;span class=&quot;amc_keyword&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;span class=&quot;amc_default&quot;&gt;php&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc2&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_html&quot;&gt;&lt;span class=&quot;amc_keyword&quot;&gt;echo&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;amc_default&quot;&gt;JText&lt;/span&gt;&lt;span class=&quot;amc_keyword&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;amc_default&quot;&gt;&lt;a href=&quot;http://www.php.net/function._&quot; title=&quot; Read the PHP.net documentation for : _() &quot; target=&quot;_blank&quot; class=&quot;codeblock_external_link&quot;&gt;_&lt;/a&gt;&lt;/span&gt;&lt;span class=&quot;amc_keyword&quot;&gt;(&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;amc_string&quot;&gt;'FOOTER_LINE2'&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;amc_keyword&quot;&gt;);&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;amc_default&quot;&gt;?&amp;gt;&lt;/span&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/div&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://blogs.dengsoft.com/index.php/tech/main-3/title-2&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>In Joomla 1.5, copyright info appears at the footer of the page:</p>

<p class="amcode">Code:</p><div class="codeblock amc_code amc_short"><table><tr class="amc_code_odd"><td class="amc_line"><div class="amc1"></div></td><td><code><span class="amc_default">Joomla! is Free Software released under the GNU/GPL License.</span></code></td></tr>
</table></div>

<p>It is actually controlled by </p>

<p class="amcode">Code:</p><div class="codeblock amc_code amc_short"><table><tr class="amc_code_odd"><td class="amc_line"><div class="amc1"></div></td><td><code><span class="amc_default">/home/yourhome/public_html/yourwebsite.com/jml15/modules/mod_footer/tmpl/default.php</span></code></td></tr>
</table></div>

<p>The corresponding php code is:</p>

<p class="amcode">PHP:</p><div class="codeblock amc_php amc_short"><table><tr class="amc_code_odd"><td class="amc_line"><div class="amc1"></div></td><td><code><span class="amc_html"><span class="amc_keyword">&lt;?</span><span class="amc_default">php&nbsp;</span></span></code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc2"></div></td><td><code><span class="amc_html"><span class="amc_keyword">echo&nbsp;</span><span class="amc_default">JText</span><span class="amc_keyword">::</span><span class="amc_default"><a href="http://www.php.net/function._" title=" Read the PHP.net documentation for : _() " target="_blank" class="codeblock_external_link">_</a></span><span class="amc_keyword">(&nbsp;</span><span class="amc_string">'FOOTER_LINE2'&nbsp;</span><span class="amc_keyword">);&nbsp;</span><span class="amc_default">?&gt;</span>&lt;/div&gt;</span></code></td></tr>
</table></div><div class="item_footer"><p><small><a href="http://blogs.dengsoft.com/index.php/tech/main-3/title-2">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://blogs.dengsoft.com/index.php/tech/main-3/title-2#comments</comments>
		</item>
				<item>
			<title>jdbcRealm in Glassfish and Tomcat</title>
			<link>http://blogs.dengsoft.com/index.php/tech/java/jdbcrealm-in-glassfish-and-tomcat</link>
			<pubDate>Wed, 10 Dec 2008 18:09:27 +0000</pubDate>			<dc:creator>dengadmin</dc:creator>
			<category domain="main">java</category>			<guid isPermaLink="false">58@http://blogs.dengsoft.com/</guid>
						<description>&lt;p&gt;jdbcRealm in Tomcat:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.onjava.com/pub/a/onjava/2001/07/24/tomcat.html?page=2&quot;&gt;http://www.onjava.com/pub/a/onjava/2001/07/24/tomcat.html?page=2&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;jdbcRealm in Glassfish:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://blogs.sun.com/swchan/entry/jdbcrealm_in_glassfish&quot;&gt;http://blogs.sun.com/swchan/entry/jdbcrealm_in_glassfish&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://blogs.sun.com/foo/entry/mort_learns_jdbc_realm_authentication&quot;&gt;http://blogs.sun.com/foo/entry/mort_learns_jdbc_realm_authentication&lt;/a&gt;&lt;br /&gt;
(group names match role names) &lt;/p&gt;

&lt;p&gt;Authentication Using Custom Realms in Sun Java System Application Server&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://developers.sun.com/appserver/reference/techart/as8_authentication/index.html&quot;&gt;http://developers.sun.com/appserver/reference/techart/as8_authentication/index.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;JDBCRealm: Can I map users/groups to roles using database? (activate-default-principal-to-role-mapping is also discussed)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://forums.java.net/jive/thread.jspa?threadID=54623&quot;&gt;http://forums.java.net/jive/thread.jspa?threadID=54623&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Glassfish for Tomcat Users - JDBC Authentication&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://jroller.com/brviking/entry/glassfish_for_tomcat_users_jdbc&quot;&gt;http://jroller.com/brviking/entry/glassfish_for_tomcat_users_jdbc&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;jGurad:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;jGuard takes the pain out of JAAS, at least as far as web apps are concerned. I would probably go with it for new web apps. But it's surprising how far servlet security with its user/role model can take you, once you hook it up to your user database/LDAP directory. And, to answer your second question, you should indeed consider it seriously, especially because you won't need to delve deep into J2SE/J2EE security to get it up and running.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;a href=&quot;http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;amp;f=65&amp;amp;t=001172&quot;&gt;http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;amp;f=65&amp;amp;t=001172&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://java-source.net/open-source/j2ee-frameworks/jguard&quot;&gt;http://java-source.net/open-source/j2ee-frameworks/jguard&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Acegi Security is now Spring Security&lt;br /&gt;
&lt;a href=&quot;http://acegisecurity.org/&quot;&gt;http://acegisecurity.org/&lt;/a&gt;&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://blogs.dengsoft.com/index.php/tech/java/jdbcrealm-in-glassfish-and-tomcat&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>jdbcRealm in Tomcat:</p>

<p><a href="http://www.onjava.com/pub/a/onjava/2001/07/24/tomcat.html?page=2">http://www.onjava.com/pub/a/onjava/2001/07/24/tomcat.html?page=2</a></p>

<p>jdbcRealm in Glassfish:</p>

<p><a href="http://blogs.sun.com/swchan/entry/jdbcrealm_in_glassfish">http://blogs.sun.com/swchan/entry/jdbcrealm_in_glassfish</a><br />
<a href="http://blogs.sun.com/foo/entry/mort_learns_jdbc_realm_authentication">http://blogs.sun.com/foo/entry/mort_learns_jdbc_realm_authentication</a><br />
(group names match role names) </p>

<p>Authentication Using Custom Realms in Sun Java System Application Server</p>

<p><a href="http://developers.sun.com/appserver/reference/techart/as8_authentication/index.html">http://developers.sun.com/appserver/reference/techart/as8_authentication/index.html</a></p>

<p>JDBCRealm: Can I map users/groups to roles using database? (activate-default-principal-to-role-mapping is also discussed)</p>

<p><a href="http://forums.java.net/jive/thread.jspa?threadID=54623">http://forums.java.net/jive/thread.jspa?threadID=54623</a></p>

<p>Glassfish for Tomcat Users - JDBC Authentication</p>

<p><a href="http://jroller.com/brviking/entry/glassfish_for_tomcat_users_jdbc">http://jroller.com/brviking/entry/glassfish_for_tomcat_users_jdbc</a></p>


<p>jGurad:</p>
<blockquote><p>jGuard takes the pain out of JAAS, at least as far as web apps are concerned. I would probably go with it for new web apps. But it's surprising how far servlet security with its user/role model can take you, once you hook it up to your user database/LDAP directory. And, to answer your second question, you should indeed consider it seriously, especially because you won't need to delve deep into J2SE/J2EE security to get it up and running.</p></blockquote>
<p><a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001172">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001172</a></p>

<p><a href="http://java-source.net/open-source/j2ee-frameworks/jguard">http://java-source.net/open-source/j2ee-frameworks/jguard</a></p>

<p>Acegi Security is now Spring Security<br />
<a href="http://acegisecurity.org/">http://acegisecurity.org/</a></p><div class="item_footer"><p><small><a href="http://blogs.dengsoft.com/index.php/tech/java/jdbcrealm-in-glassfish-and-tomcat">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://blogs.dengsoft.com/index.php/tech/java/jdbcrealm-in-glassfish-and-tomcat#comments</comments>
		</item>
				<item>
			<title>Strange Characters After Installing DedeCMS Hosted Outside of China</title>
			<link>http://blogs.dengsoft.com/index.php/tech/main-3/strange-characters-after-installing-dede</link>
			<pubDate>Thu, 06 Nov 2008 18:31:21 +0000</pubDate>			<dc:creator>dengadmin</dc:creator>
			<category domain="main">Uncategorized</category>			<guid isPermaLink="false">56@http://blogs.dengsoft.com/</guid>
						<description>&lt;p&gt;Generally speaking in order for languages with different characters than English, you need to:&lt;/p&gt;

&lt;p&gt;In your HTML meta tag, set charset to whatever you want like GBK;&lt;/p&gt;

&lt;p&gt;Save your web pages in that encoding.&lt;/p&gt;

&lt;p&gt;However sometimes this may not work. The trick is browsers are taking charset from HTTP header thus ignore whatever you set for web page as meta tag/charset.&lt;/p&gt;

&lt;p&gt;This is exactly what happens when you wanted to install DedeCMS for web sites hosted in non-GBK environment. The Apache or other web servers still use non-GBK, non-UTF8 charset in HTTP header. Some may think HTML meta tag/charset will overwrite HTTP header chaset but from my experience this is NOT the case I tested on IE, FireFox, Chrome and Flock.&lt;/p&gt;

&lt;p&gt;So next time check your HTTP header first if you are having strange characters in your browser. Hoe do you know? How can you see HTTP header info? &quot;My browser does not show it!&quot; you may say.&lt;/p&gt;

&lt;p&gt;Well, first use FireFox, a browser so friendly to developers; then install an add-on called Live HTTP Haeders. This way when you open via Tools/Live HTTP Headers, each time you load a web page, it'll show you the live HTTP headers! Make sure it shows:&lt;/p&gt;

&lt;p&gt;Content-Type: text/html; charset=GBK (or any encodings you want)&lt;/p&gt;

&lt;p&gt;If it's not, go to your server folders, locate the root directory of your web application, create a file called .htaccess if it does not exist and add something like the following:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Add the following:&lt;/p&gt;

&lt;p class=&quot;amcode&quot;&gt;Code:&lt;/p&gt;&lt;div class=&quot;codeblock amc_code amc_short&quot;&gt;&lt;table&gt;&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;&amp;lt;filesmatch &quot;\.(htm|html|txt|css|js|php)$&quot;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc2&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;# AddDefaultCharset UTF-8&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc3&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;# DefaultLanguage en-US&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc4&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;# ForceType 'text/html; charset=GBK'&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc5&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc6&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;AddDefaultCharset GBK&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc7&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;&amp;lt;/filesmatch&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;

&lt;p&gt;This way it will ensure your encodings like GBK will be set as your charset in HTTP header from your web server.&lt;/p&gt;

&lt;p&gt;That's it for now. Let me know if this works for you! I'd like to hear from you.&lt;/p&gt;

&lt;!-- Adsense block #5 not displayed since it exceed the limit of 3 --&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://blogs.dengsoft.com/index.php/tech/main-3/strange-characters-after-installing-dede&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>Generally speaking in order for languages with different characters than English, you need to:</p>

<p>In your HTML meta tag, set charset to whatever you want like GBK;</p>

<p>Save your web pages in that encoding.</p>

<p>However sometimes this may not work. The trick is browsers are taking charset from HTTP header thus ignore whatever you set for web page as meta tag/charset.</p>

<p>This is exactly what happens when you wanted to install DedeCMS for web sites hosted in non-GBK environment. The Apache or other web servers still use non-GBK, non-UTF8 charset in HTTP header. Some may think HTML meta tag/charset will overwrite HTTP header chaset but from my experience this is NOT the case I tested on IE, FireFox, Chrome and Flock.</p>

<p>So next time check your HTTP header first if you are having strange characters in your browser. Hoe do you know? How can you see HTTP header info? "My browser does not show it!" you may say.</p>

<p>Well, first use FireFox, a browser so friendly to developers; then install an add-on called Live HTTP Haeders. This way when you open via Tools/Live HTTP Headers, each time you load a web page, it'll show you the live HTTP headers! Make sure it shows:</p>

<p>Content-Type: text/html; charset=GBK (or any encodings you want)</p>

<p>If it's not, go to your server folders, locate the root directory of your web application, create a file called .htaccess if it does not exist and add something like the following:</p>

<blockquote>
<p>Add the following:</p>

<p class="amcode">Code:</p><div class="codeblock amc_code amc_short"><table><tr class="amc_code_odd"><td class="amc_line"><div class="amc1"></div></td><td><code><span class="amc_default">&lt;filesmatch "\.(htm|html|txt|css|js|php)$"&gt;</span></code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc2"></div></td><td><code><span class="amc_default"># AddDefaultCharset UTF-8</span></code></td></tr>
<tr class="amc_code_odd"><td class="amc_line"><div class="amc3"></div></td><td><code><span class="amc_default"># DefaultLanguage en-US</span></code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc4"></div></td><td><code><span class="amc_default"># ForceType 'text/html; charset=GBK'</span></code></td></tr>
<tr class="amc_code_odd"><td class="amc_line"><div class="amc5"></div></td><td><code>&nbsp;</code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc6"></div></td><td><code><span class="amc_default">AddDefaultCharset GBK</span></code></td></tr>
<tr class="amc_code_odd"><td class="amc_line"><div class="amc7"></div></td><td><code><span class="amc_default">&lt;/filesmatch&gt;</span></code></td></tr>
</table></div>
</blockquote><p></p>

<p>This way it will ensure your encodings like GBK will be set as your charset in HTTP header from your web server.</p>

<p>That's it for now. Let me know if this works for you! I'd like to hear from you.</p>

<!-- Adsense block #6 not displayed since it exceed the limit of 3 --><div class="item_footer"><p><small><a href="http://blogs.dengsoft.com/index.php/tech/main-3/strange-characters-after-installing-dede">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://blogs.dengsoft.com/index.php/tech/main-3/strange-characters-after-installing-dede#comments</comments>
		</item>
				<item>
			<title>Cannot browse, search and add password sites after myvidoop plug-in upgrade</title>
			<link>http://blogs.dengsoft.com/index.php/tech/main-3/i-used-to-be-able-to-browse-search-and-a</link>
			<pubDate>Wed, 29 Oct 2008 19:30:38 +0000</pubDate>			<dc:creator>dengadmin</dc:creator>
			<category domain="main">Uncategorized</category>			<guid isPermaLink="false">50@http://blogs.dengsoft.com/</guid>
						<description>&lt;p&gt;Letter sent to myvidoop support:&lt;/p&gt;


&lt;p&gt;&lt;code&gt;I used to be able to browse, search and add password sites. But not anymore after recent myvidoop plug-in upgrade.&lt;br /&gt;
&lt;br /&gt;
I installed the most recent standalone Java Plug-in as suggested and it did not help.&lt;br /&gt;
&lt;br /&gt;
I am using firefox 2.0/IE7 and both browsers having the same issue.&lt;br /&gt;
&lt;br /&gt;
This looks like a show stopper for me as I need to somestimes manually add passord sites.&lt;br /&gt;
&lt;br /&gt;
Can you help? Or can we downgrade?&lt;br /&gt;
&lt;br /&gt;
Thanks. &lt;/code&gt;&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://blogs.dengsoft.com/index.php/tech/main-3/i-used-to-be-able-to-browse-search-and-a&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>Letter sent to myvidoop support:</p>


<p><code>I used to be able to browse, search and add password sites. But not anymore after recent myvidoop plug-in upgrade.<br />
<br />
I installed the most recent standalone Java Plug-in as suggested and it did not help.<br />
<br />
I am using firefox 2.0/IE7 and both browsers having the same issue.<br />
<br />
This looks like a show stopper for me as I need to somestimes manually add passord sites.<br />
<br />
Can you help? Or can we downgrade?<br />
<br />
Thanks. </code></p><div class="item_footer"><p><small><a href="http://blogs.dengsoft.com/index.php/tech/main-3/i-used-to-be-able-to-browse-search-and-a">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://blogs.dengsoft.com/index.php/tech/main-3/i-used-to-be-able-to-browse-search-and-a#comments</comments>
		</item>
			</channel>
</rss>
