<?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: Javascript compression with unicode characters</title>
	<atom:link href="http://www.thespanner.co.uk/2009/08/15/javascript-compression-with-unicode-characters/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thespanner.co.uk/2009/08/15/javascript-compression-with-unicode-characters/</link>
	<description>Javascript blog with messed up syntax inside</description>
	<lastBuildDate>Thu, 26 Jan 2012 01:38:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Free JavaScript Code</title>
		<link>http://www.thespanner.co.uk/2009/08/15/javascript-compression-with-unicode-characters/#comment-1617</link>
		<dc:creator>Free JavaScript Code</dc:creator>
		<pubDate>Fri, 21 Aug 2009 03:06:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=487#comment-1617</guid>
		<description>very cool &amp; good script, thank you very much for sharing.</description>
		<content:encoded><![CDATA[<p>very cool &amp; good script, thank you very much for sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth Heyes</title>
		<link>http://www.thespanner.co.uk/2009/08/15/javascript-compression-with-unicode-characters/#comment-1616</link>
		<dc:creator>Gareth Heyes</dc:creator>
		<pubDate>Sat, 15 Aug 2009 12:48:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=487#comment-1616</guid>
		<description>Yeah ok character compression please join the contest and create a better one ;)

http://sla.ckers.org/forum/read.php?24,29866,29875</description>
		<content:encoded><![CDATA[<p>Yeah ok character compression please join the contest and create a better one <img src='http://www.thespanner.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><a href="http://sla.ckers.org/forum/read.php?24,29866,29875" rel="nofollow">http://sla.ckers.org/forum/read.php?24,29866,29875</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrea Giammarchi</title>
		<link>http://www.thespanner.co.uk/2009/08/15/javascript-compression-with-unicode-characters/#comment-1615</link>
		<dc:creator>Andrea Giammarchi</dc:creator>
		<pubDate>Sat, 15 Aug 2009 11:47:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=487#comment-1615</guid>
		<description>man, you are confusing compression with obfuscation. If you have not an algorithm or a look up table you could even increase the size, rather than compress it. Your example:
&lt;code&gt;
original = &quot;alert(1)&quot;;
compressed = &quot;â—®á¾¥ÑµÙ¨á&quot;;
function realLength(s) {
    var c,b=0,l=s.length;
    while(l){
        c=s.charCodeAt(--l);
        b+=(c&lt;128)?1:((c&lt;2048)?2:((c&lt;65536)?3:4));
    };
    return b;
};
alert([
    realLength(original),
    realLength(compressed)
]);
&lt;/code&gt;
It&#039;s 8 bytes for the original string, 13 for the compressed one ... is that compression? Is that efficient? Do not mess up concept and keep trying with your good work!

Regards</description>
		<content:encoded><![CDATA[<p>man, you are confusing compression with obfuscation. If you have not an algorithm or a look up table you could even increase the size, rather than compress it. Your example:<br />
&lt;code&gt;<br />
original = &quot;alert(1)&quot;;<br />
compressed = &quot;â—®á¾¥ÑµÙ¨á&quot;;<br />
function realLength(s) {<br />
    var c,b=0,l=s.length;<br />
    while(l){<br />
        c=s.charCodeAt(&#8211;l);<br />
        b+=(c&lt;128)?1:((c&lt;2048)?2:((c&lt;65536)?3:4));<br />
    };<br />
    return b;<br />
};<br />
alert([<br />
    realLength(original),<br />
    realLength(compressed)<br />
]);<br />
&lt;/code&gt;<br />
It&#8217;s 8 bytes for the original string, 13 for the compressed one &#8230; is that compression? Is that efficient? Do not mess up concept and keep trying with your good work!</p>
<p>Regards</p>
]]></content:encoded>
	</item>
</channel>
</rss>

