<?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>java encode url path - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/java-encode-url-path/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/java-encode-url-path/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Sat, 11 Sep 2021 11:23:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>java encode url path - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/java-encode-url-path/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Decode URL content in Java ?</title>
		<link>https://www.wikitechy.com/interview-questions/java/how-to-decode-url-content-in-java/</link>
					<comments>https://www.wikitechy.com/interview-questions/java/how-to-decode-url-content-in-java/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 23:33:53 +0000</pubDate>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Atos interview questions and answers]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Ciena Corporation interview questions and answers]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[Craterzone Interview Questions and Answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[encode string in java]]></category>
		<category><![CDATA[encoding and decoding in java example]]></category>
		<category><![CDATA[encoding and decoding program in java]]></category>
		<category><![CDATA[FIS Global Business Solutions India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[Infosys Technologies interview questions and answers]]></category>
		<category><![CDATA[java decode string]]></category>
		<category><![CDATA[java encode url path]]></category>
		<category><![CDATA[java program to encode and decode a string]]></category>
		<category><![CDATA[java uri encode]]></category>
		<category><![CDATA[java url decode]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[Persistent Systems interview questions and answers]]></category>
		<category><![CDATA[RBS India De interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[SAP Labs India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[UnitedHealth Group interview questions and answers]]></category>
		<category><![CDATA[url decode]]></category>
		<category><![CDATA[url encode]]></category>
		<category><![CDATA[Virtusa Consulting Services Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Wells Fargo interview questions and answers]]></category>
		<category><![CDATA[Wipro Infotech interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=645</guid>

					<description><![CDATA[Answer : The task to the reverse of URL encoding and distinct from URL parser is called Url Decoding..]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="how-to-decode-url-content-in-java" class="color-pink" style="text-align: justify;">How to Decode URL content in Java ?</h2>
<ul style="text-align: justify;">
<li>The task to the reverse of URL encoding and distinct from URL parser is called Url Decoding.</li>
<li>It is a common requirement to implement URL encoding and decoding in Java while creating crawlers or downloaders.</li>
</ul>
</div>
</div>
<div class="text-center row" style="text-align: justify;">
<div class="col-sm-12">
<div id="bsa-zone_1590522538159-8_123456"></div>
</div>
</div>
<div class="ImageContent" style="text-align: justify;">
<div class="hddn"><img decoding="async" class="img-responsive center-block aligncenter" src="https://cdn.wikitechy.com/interview-questions/java/decode-url.jpg" alt=" Decode URL" /></div>
</div>
<p style="text-align: justify;" align="center">Decode URL</p>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<p>The Decode URL following steps are given below,</p>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul style="text-align: justify;">
<li>The same URL can be encoded multiple times, we need to decode it until the URL cannnot be decoded further. For example, “video%252Fmp4” is the result of two encodings. Upon decoding it once, we get “video%2Fmp4”. Now the URL needs to be further decoded so that we get “video/mp4”, which is the result.</li>
<li>We use the decode method of a predefined Java class named URLDecoder.</li>
<li>The decode method of URLDecoder takes two arguments:
<ul>
<li>The first argument defines the URL to be decoded.</li>
<li>The second argument defines the decoding scheme to be used.</li>
</ul>
</li>
<li>After decoding, the resulting decoded URL is returned.</li>
<li>We create two variables: prevURL, which is empty, and decodeURL, which contains the URL to be decoded.</li>
<li>We create an iteration that runs until prevURL!=decodeURL</li>
<li>Now we update prevURL to decodeURL and update decodeURL with the decoded value of the URL passed.</li>
<li>As you can see, prevURL!=decodeURL, so we run it again and again.</li>
<li>Now, prevURL=decodeURL, so the decoded URL is returned.</li>
</ul>
<h2 id="sample-code" class="color-purple" style="text-align: justify;">Sample Code</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-java code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-java code-embed-code">import java.io.UnsupportedEncodingException;<br/>import java.net.URLDecoder;<br/> <br/>public class DecodeURLExample {<br/>    public static void main(String a[]){<br/>        try {<br/>            System.out.println(URLDecoder.decode(&quot;special+chars%3A+%26%25*+&quot;, &quot;UTF-8&quot;));<br/>        } catch (UnsupportedEncodingException ex) {<br/>            ex.printStackTrace();<br/>        }<br/>    }<br/>}</code></pre> </div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="output" class="color-blue">Output</h2>
</div>
</div>
<div class="Output">
<div class="hddn">
<figure class="highlight" style="text-align: justify;">
<pre><code class="hljs" data-lang=""><span class="nt">special chars: &%* </span></code></pre>
</figure>
</div>
</div>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/java/how-to-decode-url-content-in-java/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
