<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: How to display Chinese character in the grid?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-display-chinese-character-in-the-grid</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/how-to-display-chinese-character-in-the-grid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Rumen[Trirand] on How to display Chinese character in the grid?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-display-chinese-character-in-the-grid#p11933</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-display-chinese-character-in-the-grid#p11933</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>There is a similar forum topic on this here:</p>
<p><a href="http://www.trirand.com/blog/?page_id=393/help/how-to-support-chinese-wordutf8" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/?p" rel="nofollow">http://www.trirand.com/blog/?p</a>.....e-wordutf8</a></p>
</p>
<p>Basically the idea is to make sure all your data and HTML pages come in UTF-8 format. This way the grid will be able to display the data correctly. This may include setting the response to:</p>
<p><pre class="prettyprint"><code><span class="tag">&#60;meta</span><span class="pln"> </span><span class="atn">http-equiv</span><span class="pun">=</span><span class="atv">"Content-Type"</span><span class="pln"> </span><span class="atn">content</span><span class="pun">=</span><span class="atv">"text/html;charset=utf-8"</span><span class="tag">/&#62;</span></code></pre>
<pre class="prettyprint"><span style="font-family: monospace;"><br /></span></pre>
<pre class="prettyprint"><span style="font-family: monospace;">I have one question - we seem to be missing Chinese localization in our install package, can</span></pre>
<pre class="prettyprint"><span style="font-family: monospace;">you please send us you Chinese localization of the grid locales? (mail to rumen.stankov at trirand dot net)</span></pre>
<pre class="prettyprint"><span style="font-family: monospace;"><br /></span></pre>
<pre class="prettyprint"><span style="font-family: monospace;">Thanks a lot.</span></pre>
<pre class="prettyprint"><span style="font-family: monospace;"><br /></span></pre>
<pre class="prettyprint"><span style="font-family: monospace;">Kind Regards,</span></pre>
<pre class="prettyprint"><span style="font-family: monospace;">Rumen</span></pre>
<pre class="prettyprint"><span style="font-family: monospace;">Trirand Inc</span></pre></p>
]]></description>
        	        	<pubDate>Sat, 14 Nov 2009 01:42:50 +0200</pubDate>
        </item>
        <item>
        	<title>markthien on How to display Chinese character in the grid?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-display-chinese-character-in-the-grid#p11932</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-display-chinese-character-in-the-grid#p11932</guid>
        	        	<description><![CDATA[<p>Hi guys,</p>
<p>&#160;&#160;&#160; Sorry it&#39;s my mistake.I forgot to set execute the query below:</p>
</p>
<p>// set the query the UTF8 first<br />$SQL = &#39;SET character_set_results=utf8&#39;;<br />$result = mysql_query( $SQL ) or die("Couldn&#39;t execute query.".mysql_error());</p>
<p>// then your query below</p>
<p>mysql_close();</p>
</p>
<p>hope this help someone out there on the Earth !</p>
]]></description>
        	        	<pubDate>Fri, 13 Nov 2009 22:32:03 +0200</pubDate>
        </item>
        <item>
        	<title>markthien on How to display Chinese character in the grid?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-display-chinese-character-in-the-grid#p11914</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-display-chinese-character-in-the-grid#p11914</guid>
        	        	<description><![CDATA[<p>sorry double post accidentally</p>
]]></description>
        	        	<pubDate>Fri, 13 Nov 2009 10:00:24 +0200</pubDate>
        </item>
        <item>
        	<title>markthien on How to display Chinese character in the grid?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-display-chinese-character-in-the-grid#p11905</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-display-chinese-character-in-the-grid#p11905</guid>
        	        	<description><![CDATA[<p>my php code is like below:</p>
</p>
<p>$SQL = "SELECT id, date_created, mobile_num, message FROM inbound_message ORDER BY $sidx $sord LIMIT $start , $limit"; <br />$result = mysql_query( $SQL ) or die("Couldn&#39;t execute query.".mysql_error()); </p>
<p>$responce-&#62;page = $page; <br />$responce-&#62;total = $total_pages; <br />$responce-&#62;records = $count; <br />$i=0; </p>
<p>while($row = mysql_fetch_array($result,MYSQL_ASSOC)) { <br />&#160;&#160;&#160; $responce-&#62;rows[$i][&#39;id&#39;]=$row[&#39;id&#39;]; <br />&#160;&#160;&#160; $responce-&#62;rows[$i][&#39;cell&#39;]=array($row[&#39;id&#39;],$row[&#39;date_created&#39;],$row[&#39;mobile_num&#39;],$row[&#39;message&#39;]); <br />&#160;&#160;&#160; $i++; <br />} </p>
<p>echo json_encode($responce);</p>
]]></description>
        	        	<pubDate>Fri, 13 Nov 2009 09:10:42 +0200</pubDate>
        </item>
        <item>
        	<title>markthien on How to display Chinese character in the grid?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-display-chinese-character-in-the-grid#p11904</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-display-chinese-character-in-the-grid#p11904</guid>
        	        	<description><![CDATA[<p>Hi guys,</p>
<p>&#160;&#160;&#160; I was using json to grab data from mysql and able to display the Chinese characters in a common table. However, now I changed to use jqgrid, all the Chinese character garble. Appreciate any help please. My code is like below:</p>
</p>
<p>&#160;&#160;&#160; &#160; $("#list").jqGrid({<br />&#160;&#160;&#160; &#160;&#160;&#160; url:&#39;bin/get-inbox.php?q=2&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; mtype: &#39;GET&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; colNames:[&#39;Id&#39;,&#39;Date&#39;,&#39;Mobile&#39;, &#39;Message&#39;],<br />&#160;&#160;&#160; &#160;&#160;&#160; colModel :[ <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160; {name:&#39;id&#39;, index:&#39;id&#39;, width:100, hidden:true}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160; {name:&#39;date_created&#39;, index:&#39;date_created&#39;, width:180}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160; {name:&#39;mobile_num&#39;, index:&#39;mobile_num&#39;, width:120}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160; {name:&#39;message&#39;, index:&#39;message&#39;, width:880} <br />&#160;&#160;&#160; &#160;&#160;&#160; ],<br />&#160;&#160;&#160; &#160;&#160;&#160; imgpath: gridimgpath, <br />&#160;&#160;&#160; &#160;&#160;&#160; pager: &#39;#pager&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; rowNum:20,<br />&#160;&#160;&#160; &#160;&#160;&#160; rowList:[20,40,60],<br />&#160;&#160;&#160; &#160;&#160;&#160; sortname: &#39;date_created&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; sortorder: &#39;desc&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; &#160;&#160;&#160; height:440,<br />&#160;&#160;&#160; &#160;&#160;&#160; pginput:false<br />&#160;&#160;&#160; &#160; }).navGrid(&#39;#pager&#39;,{edit:false,add:false,del:false,search:false,refresh:true});</p>
</p>
<p>thanks &#38; regards,</p>
<p>Mark Thien</p>
]]></description>
        	        	<pubDate>Fri, 13 Nov 2009 09:06:58 +0200</pubDate>
        </item>
</channel>
</rss>