<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ladysign Dev Blog &#187; encoding</title>
	<atom:link href="http://www.ladysign-apps.com/blog/tag/encoding/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ladysign-apps.com/blog</link>
	<description>Girls can code.</description>
	<lastBuildDate>Mon, 12 Dec 2011 16:58:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Unicode converter</title>
		<link>http://www.ladysign-apps.com/blog/code/encoding/unicode-converter/</link>
		<comments>http://www.ladysign-apps.com/blog/code/encoding/unicode-converter/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 09:44:28 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[encoding]]></category>
		<category><![CDATA[encoding euro sign]]></category>
		<category><![CDATA[json utf-8]]></category>
		<category><![CDATA[utf-8]]></category>

		<guid isPermaLink="false">http://www.ladysign-apps.com/blog/?p=971</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars</p>
<p>I found a handy unicode converter online. This might become handy when for encoding UTF-8 characters in Javascript/JSON o[......]</p><p class='read-more'><a href='http://www.ladysign-apps.com/blog/code/encoding/unicode-converter/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars</p>
<p>I found a handy unicode converter online. This might become handy when for encoding UTF-8 characters in Javascript/JSON objects. (such as for example the &euro; sign. which becomes: &#8220;\u20ac&#8221;</p>
<p><a href="http://people.w3.org/rishida/scripts/uniview/conversion.php">http://people.w3.org/rishida/scripts/uniview/conversion.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/encoding/unicode-converter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a logout button in Joomla 1.5</title>
		<link>http://www.ladysign-apps.com/blog/code/encoding/create-a-logout-button-in-joomla-1-5/</link>
		<comments>http://www.ladysign-apps.com/blog/code/encoding/create-a-logout-button-in-joomla-1-5/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 12:33:10 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[encoding]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[Base64]]></category>
		<category><![CDATA[converter]]></category>
		<category><![CDATA[Joomla 1.5]]></category>
		<category><![CDATA[logout]]></category>

		<guid isPermaLink="false">http://ladysign-apps.com/blog/?p=778</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars</p>
<p>In Joomla 1.5, you need to press the logout button within the login component, to log off your session.<br />
This logic doesn&#038;[......]</p><p class='read-more'><a href='http://www.ladysign-apps.com/blog/code/encoding/create-a-logout-button-in-joomla-1-5/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars</p>
<p>In Joomla 1.5, you need to press the logout button within the login component, to log off your session.<br />
This logic doesn&#8217;t seem very clear for me. If I want to log-off I don&#8217;t want 2 page clicks/refreshes.</p>
<p>To create a logout button or menu link, you just need to invoke the logout URL part:</p>
<pre class="brush: jscript; title: ;">index.php?option=com_user&amp;task=logout&amp;return=Lw==</pre>
<p>Or incase when you have Search Engine Friendly (SEF) URL&#8217;s:</p>
<pre class="brush: jscript; title: ;">/logout.html?return=Lw</pre>
<p>Now did you note, the return=Lw== parameter?<br />
This parameter is for bringing you back to the return page, after logging out.<br />
The &#8220;Lw==&#8221;-value, is a Base64 encoding for &#8220;/&#8221; which brings you back to the root of the page.</p>
<p>Say that you don&#8217;t want to forward to the root, but to the &#8216;/goodbye/index.html&#8217; page?<br />
You will need the Base64 encoding of this string:</p>
<pre class="brush: jscript; title: ;">/logout.html?return=L2dvb2RieWUvaW5kZXguaHRtbA==</pre>
<p>Well, here&#8217;s your help, I found <a href="http://www.motobit.com/util/base64-decoder-encoder.asp">a nice online Base64 converter</a>, which does this job for you.</p>
<p>Check out<a href="http://www.sandranasicfans.eu/sandranasic/"> my website</a> to see it working in a Joomla 1.5 page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/encoding/create-a-logout-button-in-joomla-1-5/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Unicode to Decimal Encoder</title>
		<link>http://www.ladysign-apps.com/blog/code/encoding/unicode-to-decimal-encoder/</link>
		<comments>http://www.ladysign-apps.com/blog/code/encoding/unicode-to-decimal-encoder/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 09:50:05 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[encoding]]></category>
		<category><![CDATA[unicode]]></category>

		<guid isPermaLink="false">http://ladysign-apps.com/blog/?p=181</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars</p>
<p>Today I found this usefull link to encode Unicode to Decimal.<br />
<a href="http://kongming.net/development/tools/unicode-to-decimal-entity-encoder.php" target="_blank">Unicode &#8211; Decimal Encoder</a></p>
<p>This tool encodes special c[......]</p><p class='read-more'><a href='http://www.ladysign-apps.com/blog/code/encoding/unicode-to-decimal-encoder/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars</p>
<p>Today I found this usefull link to encode Unicode to Decimal.<br />
<a href="http://kongming.net/development/tools/unicode-to-decimal-entity-encoder.php" target="_blank">Unicode &#8211; Decimal Encoder</a></p>
<p>This tool encodes special characters (or for example chinese characters) to a decimal entity encoding:<br />
For example Â© will be encode to: &#169</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/encoding/unicode-to-decimal-encoder/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>URL encoding</title>
		<link>http://www.ladysign-apps.com/blog/code/encoding/url-encoding/</link>
		<comments>http://www.ladysign-apps.com/blog/code/encoding/url-encoding/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 11:18:20 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[encoding]]></category>
		<category><![CDATA[URL]]></category>
		<category><![CDATA[url-encoding]]></category>

		<guid isPermaLink="false">http://ladysign-apps.com/blog/?p=33</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 2 out of 5 stars</p>
<p>On my job I often get a lot of questions about forming URL&#8217;s with parameters. The key is URL Encoding.<br />
For example [......]</p><p class='read-more'><a href='http://www.ladysign-apps.com/blog/code/encoding/url-encoding/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 2 out of 5 stars</p>
<p>On my job I often get a lot of questions about forming URL&#8217;s with parameters. The key is URL Encoding.<br />
For example when you have a page which contains 2 parameters:</p>
<pre class="brush: jscript; title: ;">
http://www.mypage.com/myscript.jsp?parameter1=x&amp;parameter2=y
</pre>
<p>The parameters are seperated from the url by the question mark. &#8220;?&#8221;<br />
The page myscript.jsp contains 2 parameters seperated each other by the &#8220;&#038;&#8221; sign.</p>
<p>Now let&#8217;s say you have a forward script, a script which forwards your page to an other page.</p>
<pre class="brush: jscript; title: ;">
http://www.mysite.com/forward.jsp?url=http://www.mypage.com/myscript.jsp
</pre>
<p>When you want to keep the parameters of the myscript.jsp page, you need to URL encode this.</p>
<pre class="brush: jscript; title: ;">
http://www.mysite.com/forward.jsp?url=http://www.mypage.com/myscript.jsp%3Fparameter1=x%26parameter2=y
</pre>
<p>What would happen if you would not use URL encoding:<br />
	(http://www.mysite.com/forward.jsp?url=http://www.mypagecom/myscript.jsp?parameter1=x&#038;parameter2=y)<br />
	Instead of reading the url like this:</p>
<pre class="brush: jscript; title: ;">
	[1: http://www.mysite.com/forward.jsp?url= [2: http://www.mypage.com/myscript.jsp?[2A: parameter1=x]&amp;[2B:parameter2=y]]
</pre>
<p>	It breaks the URL after parameter1 because of the &#8220;&#038;&#8221; sign, which seperates &#8220;parameter2&#8243; from the parameter &#8220;url&#8221;:</p>
<pre class="brush: jscript; title: ;">
	[1: http://www.mysite.com/forward.jsp?url= [2: http://www.mypage.com/myscript.jsp?][3: parameter1=x]&amp;[4: parameter2=y]
</pre>
<p>Now say that you are using a monitoring tracker script. Which should track the forward script aswell.<br />
You can simply not use an URL encoded string within an URL encoding:</p>
<pre class="brush: jscript; title: ;">
http://www.thirdparty.com/tracker.jsp?url=http://www.mysite.com/forward.jsp?url=http://www.mypage.com/myscript.jsp%3Fparameter1=x%26parameter2=y
</pre>
<p>From here you are using again double questionmarks which is not right.<br />
And the moment when the browser decodes the url, the url will be broken again on the &#8220;&#038;&#8221; sign.</p>
<pre class="brush: jscript; title: ;">
[1: http://www.thirdparty.com/tracker.jsp?url= [2: http://www.mysite.com/forward.jsp?url= [3: http://www.mypage.com/myscript.jsp?][4: parameter1=x]&amp;[5: parameter2=y]]
</pre>
<p>Means there is no other way, to solve this in the URL. To track the forward url with url parameter, there should be a script behind, which is retrieving and tracking and forwarding the URLS.</p>
<p>Use this Tool to encode URLS:<br />
<a href="http://www.xs4all.nl/~jlpoutre/BoT/Javascript/Utils/endecode.html">http://www.xs4all.nl/~jlpoutre/BoT/Javascript/Utils/endecode.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/encoding/url-encoding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

