<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/encode</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 22 May 2013 16:40:36 GMT</pubDate>
<item>
<title>(PHP) Data URI base64 PHP function - phpdev</title>
<link>http://snipplr.com/view/70078/data-uri-base64-php-function/</link>
<description><![CDATA[ <p>**Example of use:**
    
    echo base64DataUri('/var/www/html/background.png');

*or*

    echo base64DataUri('http://static.php.net/www.php.net/images/php.gif');</p> ]]></description>
<pubDate>Sun, 24 Feb 2013 11:44:50 GMT</pubDate>
<guid>http://snipplr.com/view/70078/data-uri-base64-php-function/</guid>
</item>
<item>
<title>(PHP) Base64 Encode and Decode String in PHP - apphp-snippets</title>
<link>http://snipplr.com/view/69996/base64-encode-and-decode-string-in-php/</link>
<description><![CDATA[ <p>Encodes the given data with MIME base64. Base64-encoded data takes about 33% more space than the original data.</p> ]]></description>
<pubDate>Tue, 19 Feb 2013 21:12:51 GMT</pubDate>
<guid>http://snipplr.com/view/69996/base64-encode-and-decode-string-in-php/</guid>
</item>
<item>
<title>(Bash) Convert file encoding recursively - rabc</title>
<link>http://snipplr.com/view/66374/convert-file-encoding-recursively/</link>
<description><![CDATA[ <p>iconv -l to show all available encodes, replace xxx with you file ext</p> ]]></description>
<pubDate>Sat, 28 Jul 2012 02:23:21 GMT</pubDate>
<guid>http://snipplr.com/view/66374/convert-file-encoding-recursively/</guid>
</item>
<item>
<title>(JavaScript) KASXencode - Awesomolocity</title>
<link>http://snipplr.com/view/64145/kasxencode/</link>
<description><![CDATA[ <p>A custom made encoding method</p> ]]></description>
<pubDate>Sat, 24 Mar 2012 06:48:26 GMT</pubDate>
<guid>http://snipplr.com/view/64145/kasxencode/</guid>
</item>
<item>
<title>(PHP) Base64 Image Encode - alyssonweb</title>
<link>http://snipplr.com/view/57830/base64-image-encode/</link>
<description><![CDATA[ <p>used as so


.logo {
    background: url("</p> ]]></description>
<pubDate>Mon, 15 Aug 2011 12:43:08 GMT</pubDate>
<guid>http://snipplr.com/view/57830/base64-image-encode/</guid>
</item>
<item>
<title>(PHP) PHP String Encoder (for Javascript Alert, Confirm, etc.) - frederichoule</title>
<link>http://snipplr.com/view/51422/php-string-encoder-for-javascript-alert-confirm-etc/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 01 Apr 2011 13:34:27 GMT</pubDate>
<guid>http://snipplr.com/view/51422/php-string-encoder-for-javascript-alert-confirm-etc/</guid>
</item>
<item>
<title>(PHP) Object to Array - frederichoule</title>
<link>http://snipplr.com/view/51420/object-to-array/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 01 Apr 2011 13:30:51 GMT</pubDate>
<guid>http://snipplr.com/view/51420/object-to-array/</guid>
</item>
<item>
<title>(JavaScript) rot13x() - TopcatSoftware</title>
<link>http://snipplr.com/view/46796/rot13x/</link>
<description><![CDATA[ <p>ROT13 is a self encrypting/decrypting cipher. While not terribly secure, its still a handy method for casually masking text. Here's my implementation of the ROT13 cipher in javascript extended to include digits. Feel free to use it in your own work, and contact us if you improve it. Wikipedia has more information about obfuscation.</p> ]]></description>
<pubDate>Sun, 09 Jan 2011 04:36:21 GMT</pubDate>
<guid>http://snipplr.com/view/46796/rot13x/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Encode and Decode HTML Entity Names (Full Set) - adrianparr</title>
<link>http://snipplr.com/view/46566/as3-encode-and-decode-html-entity-names-full-set/</link>
<description><![CDATA[ <p>Use this static class to encode and decode HTML Entity Names. For some reason Snipplr doesn't display all the code, so download the ZIP file for a full working demo and source code.</p> ]]></description>
<pubDate>Thu, 06 Jan 2011 01:45:52 GMT</pubDate>
<guid>http://snipplr.com/view/46566/as3-encode-and-decode-html-entity-names-full-set/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Replace Special XML Characters with Entity Names (Partial Set) - adrianparr</title>
<link>http://snipplr.com/view/45887/as3-replace-special-xml-characters-with-entity-names-partial-set/</link>
<description><![CDATA[ <p>These five characters should be replaced with their HTML entity names before being used in XML, otherwise they may cause the XML to be invalid.</p> ]]></description>
<pubDate>Fri, 17 Dec 2010 23:00:40 GMT</pubDate>
<guid>http://snipplr.com/view/45887/as3-replace-special-xml-characters-with-entity-names-partial-set/</guid>
</item>
<item>
<title>(C#) Encode string into Bytes - jx_boi</title>
<link>http://snipplr.com/view/40070/encode-string-into-bytes/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 07 Sep 2010 12:37:39 GMT</pubDate>
<guid>http://snipplr.com/view/40070/encode-string-into-bytes/</guid>
</item>
<item>
<title>(ActionScript 3) Base 58 encode (used for flic.kr short urls) - ninjaparade</title>
<link>http://snipplr.com/view/39199/base-58-encode-used-for-flickr-short-urls/</link>
<description><![CDATA[ <p>base 58 encoding in AS3 used to create a short url for flickr (flic.kr/p/) from a photo id. Function requires the flickr photo id to be passed in cast as a Number. Example below</p> ]]></description>
<pubDate>Wed, 18 Aug 2010 03:25:07 GMT</pubDate>
<guid>http://snipplr.com/view/39199/base-58-encode-used-for-flickr-short-urls/</guid>
</item>
<item>
<title>(C#) Bencoding encoder and decoder - SuprDewd</title>
<link>http://snipplr.com/view/37790/bencoding-encoder-and-decoder/</link>
<description><![CDATA[ <p>For those having trouble with encoding and decoding bencode, here is something to help you.</p> ]]></description>
<pubDate>Fri, 23 Jul 2010 09:46:52 GMT</pubDate>
<guid>http://snipplr.com/view/37790/bencoding-encoder-and-decoder/</guid>
</item>
<item>
<title>(C#) Presentation Framework Imaging Classes Gray-Scale Example (loading, drawing, encoding) - bryanlyman</title>
<link>http://snipplr.com/view/27700/presentation-framework-imaging-classes-grayscale-example-loading-drawing-encoding/</link>
<description><![CDATA[ <p>You must include these DLL references in your vsweb or vscode project:\r\nPresentationCore,\r\nPresentationFramework,\r\nWindowsBase. \r\nNotice how I am manipulating the RGB values of each pixel, this is the power of these classes. The Drawing classes have the pixel drawing capabilities to draw lines and such already written for you, but handling a grayscale byte for byte is faster than relying on their other classes. I also chose to load and encode as PNG, but they have loaders and encoders for other file types as well that work the same way.</p> ]]></description>
<pubDate>Thu, 04 Feb 2010 12:51:39 GMT</pubDate>
<guid>http://snipplr.com/view/27700/presentation-framework-imaging-classes-grayscale-example-loading-drawing-encoding/</guid>
</item>
<item>
<title>(PHP) PHP tiny url encode and decode functions - ginoplusio</title>
<link>http://snipplr.com/view/25668/php-tiny-url-encode-and-decode-functions/</link>
<description><![CDATA[ <p>The first function make short urls.
The second function decode a short url with CURL. It gets the http header of the short url page. If the header contains a "Location:" header, then it's a redirect, and the decoded url is the url in the "Location" header string, here is the code:</p> ]]></description>
<pubDate>Tue, 29 Dec 2009 11:58:13 GMT</pubDate>
<guid>http://snipplr.com/view/25668/php-tiny-url-encode-and-decode-functions/</guid>
</item>
<item>
<title>(PHP) Base62 Encode / Decode - jmiller</title>
<link>http://snipplr.com/view/22246/base62-encode--decode/</link>
<description><![CDATA[ <p>If you have large integers and you want to shrink them down in size for whatever reason, you can use this code. Should be easy enough to extend if you want even higher bases (just add a few more chars and increase the base).</p> ]]></description>
<pubDate>Sat, 31 Oct 2009 19:18:57 GMT</pubDate>
<guid>http://snipplr.com/view/22246/base62-encode--decode/</guid>
</item>
<item>
<title>(jQuery) Encode HTML entities - cyberhobo</title>
<link>http://snipplr.com/view/18967/encode-html-entities/</link>
<description><![CDATA[ <p>Found at the source link - stealing and indexing :)</p> ]]></description>
<pubDate>Fri, 28 Aug 2009 14:46:57 GMT</pubDate>
<guid>http://snipplr.com/view/18967/encode-html-entities/</guid>
</item>
<item>
<title>(Other) Convert to utf8 - sixmedia</title>
<link>http://snipplr.com/view/17921/convert-to-utf8/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 05 Aug 2009 11:01:01 GMT</pubDate>
<guid>http://snipplr.com/view/17921/convert-to-utf8/</guid>
</item>
<item>
<title>(PHP) cookie_encode &amp;amp; cookie_decode - segdeha</title>
<link>http://snipplr.com/view/16724/cookieencode--cookiedecode/</link>
<description><![CDATA[ <p>This is a great way to save complex objects as cookie values. You can't just json_encode because commas are not legal in cookie values. Remember not to use this for anything too big because cookies have a 4KB limit.</p> ]]></description>
<pubDate>Tue, 07 Jul 2009 07:14:00 GMT</pubDate>
<guid>http://snipplr.com/view/16724/cookieencode--cookiedecode/</guid>
</item>
<item>
<title>(PHP) fast and light json_encode - kirie</title>
<link>http://snipplr.com/view/13911/fast-and-light-jsonencode/</link>
<description><![CDATA[ <p>A fallback for php's json_encode functionality. What do you think?</p> ]]></description>
<pubDate>Thu, 09 Apr 2009 09:12:32 GMT</pubDate>
<guid>http://snipplr.com/view/13911/fast-and-light-jsonencode/</guid>
</item>
</channel>
</rss>