<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Sajax With JSON Support In PHP</title>
	<atom:link href="http://blog.hackerforhire.org/sajax-with-json-support-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hackerforhire.org</link>
	<description>Burning Down People's Dreams Since That One Day ...</description>
	<lastBuildDate>Thu, 26 Aug 2010 21:54:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Wyatt</title>
		<link>http://blog.hackerforhire.org/sajax-with-json-support-in-php/comment-page-1/#comment-37575</link>
		<dc:creator>Wyatt</dc:creator>
		<pubDate>Fri, 04 Sep 2009 04:26:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hackerforhire.org/sajax-with-json-support-in-php/#comment-37575</guid>
		<description>So noted.  It looks like they&#039;ve finally picked up the changes.  I&#039;ll make a note at the top.</description>
		<content:encoded><![CDATA[<p>So noted.  It looks like they&#8217;ve finally picked up the changes.  I&#8217;ll make a note at the top.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AJenbo</title>
		<link>http://blog.hackerforhire.org/sajax-with-json-support-in-php/comment-page-1/#comment-37499</link>
		<dc:creator>AJenbo</dc:creator>
		<pubDate>Sun, 30 Aug 2009 15:10:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hackerforhire.org/sajax-with-json-support-in-php/#comment-37499</guid>
		<description>Sajax 0.13 now works with JSON and UTF-8 encoding, get it at http://sajax.info/</description>
		<content:encoded><![CDATA[<p>Sajax 0.13 now works with JSON and UTF-8 encoding, get it at <a href="http://sajax.info/" rel="nofollow">http://sajax.info/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johnny</title>
		<link>http://blog.hackerforhire.org/sajax-with-json-support-in-php/comment-page-1/#comment-29363</link>
		<dc:creator>johnny</dc:creator>
		<pubDate>Tue, 30 Dec 2008 21:23:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hackerforhire.org/sajax-with-json-support-in-php/#comment-29363</guid>
		<description>Ehku9E Thanks for good post</description>
		<content:encoded><![CDATA[<p>Ehku9E Thanks for good post</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mawan</title>
		<link>http://blog.hackerforhire.org/sajax-with-json-support-in-php/comment-page-1/#comment-27116</link>
		<dc:creator>mawan</dc:creator>
		<pubDate>Tue, 30 Sep 2008 00:05:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hackerforhire.org/sajax-with-json-support-in-php/#comment-27116</guid>
		<description>Heyy Wyatt,

Thanks a lot for your great reply ! :) I was actually able to fixed the problem after couple hours stuck on my laptop.

It was my application that did &quot;utf8_encode()&quot; of an already utf8 values from the database. Among all other encoding configuration problems, but due to this I was able to learn a lot bout it. :)

Your tweaks on sajax+json rocks ! seriously, now I can continue develop my apps so it&#039;ll be able to run functions on background without all those explode function and appending delimiters.</description>
		<content:encoded><![CDATA[<p>Heyy Wyatt,</p>
<p>Thanks a lot for your great reply ! <img src='http://blog.hackerforhire.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I was actually able to fixed the problem after couple hours stuck on my laptop.</p>
<p>It was my application that did &#8220;utf8_encode()&#8221; of an already utf8 values from the database. Among all other encoding configuration problems, but due to this I was able to learn a lot bout it. <img src='http://blog.hackerforhire.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Your tweaks on sajax+json rocks ! seriously, now I can continue develop my apps so it&#8217;ll be able to run functions on background without all those explode function and appending delimiters.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wyatt</title>
		<link>http://blog.hackerforhire.org/sajax-with-json-support-in-php/comment-page-1/#comment-27115</link>
		<dc:creator>Wyatt</dc:creator>
		<pubDate>Mon, 29 Sep 2008 23:46:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hackerforhire.org/sajax-with-json-support-in-php/#comment-27115</guid>
		<description>mawan, I&#039;m not sure what the change is that Mattias made.  It could be anything from changing the page encoding to changing the PHP/JavaScript functions to understand UTF-8.  I&#039;ll see what I can do and get back with you.  You could try changing the Sajax.php file around lines 216 and 229 to use &lt;strong&gt;encodeURI()&lt;/strong&gt; instead of &lt;strong&gt;encodeURIComponent()&lt;/strong&gt;.
[code lang=&quot;javascript&quot;]
:216
	for (i = 0; i &lt; args.length-1; i++) {
		//uri += &quot;&amp;rsargs[]=&quot; + escape(args[i]);
		uri += &quot;&amp;rsargs[]=&quot; + encodeURI(args[i].toJSONString());
	}
:229
	for (i = 0; i &lt; args.length-1; i++) {
		//post_data = post_data + &quot;&amp;rsargs[]=&quot; + escape(args[i]);
		post_data = post_data + &quot;&amp;rsargs[]=&quot; + encodeURI(args[i].toJSONString());
	}
[/code]


Tim Powell also has a solution over &lt;a href=&quot;http://www.worldtimzone.com/res/encode/&quot; rel=&quot;nofollow&quot;&gt;here.  You&#039;d need to take his function and include them into the Sajax.php before the JavaScript gets written to the page if you wanted to replace the &lt;strong&gt;encodeURIComponent()&lt;/strong&gt; with his &lt;strong&gt;encodeURIComponentNew()&lt;/strong&gt;.

Of course, I&#039;ve not tested any of this so your mileage may vary.  Again, I&#039;ll see if I can find out what Mattias did to make it work and let you know.</description>
		<content:encoded><![CDATA[<p>mawan, I&#8217;m not sure what the change is that Mattias made.  It could be anything from changing the page encoding to changing the PHP/JavaScript functions to understand UTF-8.  I&#8217;ll see what I can do and get back with you.  You could try changing the Sajax.php file around lines 216 and 229 to use <strong>encodeURI()</strong> instead of <strong>encodeURIComponent()</strong>.</p>
<div class="codesnip-container" >
<div class="javascript codesnip"><span class="sy0">:</span><span class="nu0">216</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">for</span> <span class="br0">&#40;</span>i <span class="sy0">=</span> <span class="nu0">0</span><span class="sy0">;</span> i <span class="sy0">&lt;</span> args.<span class="me1">length</span><span class="sy0">-</span><span class="nu0">1</span><span class="sy0">;</span> i<span class="sy0">++</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">//uri += &quot;&amp;rsargs[]=&quot; + escape(args[i]);</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; uri <span class="sy0">+=</span> <span class="st0">&quot;&amp;rsargs[]=&quot;</span> <span class="sy0">+</span> <span class="kw1">encodeURI</span><span class="br0">&#40;</span>args<span class="br0">&#91;</span>i<span class="br0">&#93;</span>.<span class="me1">toJSONString</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
<span class="sy0">:</span><span class="nu0">229</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">for</span> <span class="br0">&#40;</span>i <span class="sy0">=</span> <span class="nu0">0</span><span class="sy0">;</span> i <span class="sy0">&lt;</span> args.<span class="me1">length</span><span class="sy0">-</span><span class="nu0">1</span><span class="sy0">;</span> i<span class="sy0">++</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">//post_data = post_data + &quot;&amp;rsargs[]=&quot; + escape(args[i]);</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; post_data <span class="sy0">=</span> post_data <span class="sy0">+</span> <span class="st0">&quot;&amp;rsargs[]=&quot;</span> <span class="sy0">+</span> <span class="kw1">encodeURI</span><span class="br0">&#40;</span>args<span class="br0">&#91;</span>i<span class="br0">&#93;</span>.<span class="me1">toJSONString</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div>
</div>
<p>Tim Powell also has a solution over <a href="http://www.worldtimzone.com/res/encode/" rel="nofollow">here.  You&#8217;d need to take his function and include them into the Sajax.php before the JavaScript gets written to the page if you wanted to replace the <strong>encodeURIComponent()</strong> with his <strong>encodeURIComponentNew()</strong>.</p>
<p>Of course, I&#8217;ve not tested any of this so your mileage may vary.  Again, I&#8217;ll see if I can find out what Mattias did to make it work and let you know.</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mawan</title>
		<link>http://blog.hackerforhire.org/sajax-with-json-support-in-php/comment-page-1/#comment-27097</link>
		<dc:creator>mawan</dc:creator>
		<pubDate>Mon, 29 Sep 2008 03:03:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hackerforhire.org/sajax-with-json-support-in-php/#comment-27097</guid>
		<description>when i put måwan it gives &quot;m%uFFFDwan&quot; as result</description>
		<content:encoded><![CDATA[<p>when i put måwan it gives &#8220;m%uFFFDwan&#8221; as result</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mawan</title>
		<link>http://blog.hackerforhire.org/sajax-with-json-support-in-php/comment-page-1/#comment-27096</link>
		<dc:creator>mawan</dc:creator>
		<pubDate>Mon, 29 Sep 2008 03:01:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hackerforhire.org/sajax-with-json-support-in-php/#comment-27096</guid>
		<description>Mattias: How did you change the encoding again ? would anyone please inform me about it ?
I put the swedish character in it and still doesnt work even i put meta charset utf-8.
öåä</description>
		<content:encoded><![CDATA[<p>Mattias: How did you change the encoding again ? would anyone please inform me about it ?<br />
I put the swedish character in it and still doesnt work even i put meta charset utf-8.<br />
öåä</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wyatt</title>
		<link>http://blog.hackerforhire.org/sajax-with-json-support-in-php/comment-page-1/#comment-26650</link>
		<dc:creator>Wyatt</dc:creator>
		<pubDate>Fri, 05 Sep 2008 03:11:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hackerforhire.org/sajax-with-json-support-in-php/#comment-26650</guid>
		<description>Glad you found it and you put it here.  Hopefully if someone else has the same problem you&#039;ll have given them the right answer :-)</description>
		<content:encoded><![CDATA[<p>Glad you found it and you put it here.  Hopefully if someone else has the same problem you&#8217;ll have given them the right answer <img src='http://blog.hackerforhire.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mattias</title>
		<link>http://blog.hackerforhire.org/sajax-with-json-support-in-php/comment-page-1/#comment-26583</link>
		<dc:creator>Mattias</dc:creator>
		<pubDate>Thu, 04 Sep 2008 12:18:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hackerforhire.org/sajax-with-json-support-in-php/#comment-26583</guid>
		<description>Ahh found the problem and the code get&#039;s a new encoding on the way.
Change my encoding from blabla to utf8.

Sry for last post ;)</description>
		<content:encoded><![CDATA[<p>Ahh found the problem and the code get&#8217;s a new encoding on the way.<br />
Change my encoding from blabla to utf8.</p>
<p>Sry for last post <img src='http://blog.hackerforhire.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mattias</title>
		<link>http://blog.hackerforhire.org/sajax-with-json-support-in-php/comment-page-1/#comment-26571</link>
		<dc:creator>Mattias</dc:creator>
		<pubDate>Thu, 04 Sep 2008 09:31:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hackerforhire.org/sajax-with-json-support-in-php/#comment-26571</guid>
		<description>Great work whit this!
I just love the object funktion you added. Still ran in to a problem trying u&#039;re sajax version out.
I&#039;m from sweden and we got some special chars: å ä ö Å Ä Ö.
And when I try to return myobj.name= &quot;Göran&quot;;
It seams like Sajax cuts the word at ö and returns only &quot;G&quot;.
Do you have any idea, how to fix this?
Once again great sajax version!</description>
		<content:encoded><![CDATA[<p>Great work whit this!<br />
I just love the object funktion you added. Still ran in to a problem trying u&#8217;re sajax version out.<br />
I&#8217;m from sweden and we got some special chars: å ä ö Å Ä Ö.<br />
And when I try to return myobj.name= &#8220;Göran&#8221;;<br />
It seams like Sajax cuts the word at ö and returns only &#8220;G&#8221;.<br />
Do you have any idea, how to fix this?<br />
Once again great sajax version!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
