<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://legoktm.com/w/index.php?action=history&amp;feed=atom&amp;title=Rust%2FencodeURIComponent</id>
	<title>Rust/encodeURIComponent - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://legoktm.com/w/index.php?action=history&amp;feed=atom&amp;title=Rust%2FencodeURIComponent"/>
	<link rel="alternate" type="text/html" href="https://legoktm.com/w/index.php?title=Rust/encodeURIComponent&amp;action=history"/>
	<updated>2026-04-19T12:49:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://legoktm.com/w/index.php?title=Rust/encodeURIComponent&amp;diff=309&amp;oldid=prev</id>
		<title>Legoktm at 05:45, 31 January 2025</title>
		<link rel="alternate" type="text/html" href="https://legoktm.com/w/index.php?title=Rust/encodeURIComponent&amp;diff=309&amp;oldid=prev"/>
		<updated>2025-01-31T05:45:47Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:45, 31 January 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source&lt;/del&gt; lang=&quot;rust&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight&lt;/ins&gt; lang=&quot;rust&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;fn encode_uri_component(component: &amp;amp;str) -&amp;gt; String {&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;fn encode_uri_component(component: &amp;amp;str) -&amp;gt; String {&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    use percent_encoding::{utf8_percent_encode, AsciiSet, CONTROLS};&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    use percent_encoding::{utf8_percent_encode, AsciiSet, CONTROLS};&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 32:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 32:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    utf8_percent_encode(component, COMPONENT).to_string()&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    utf8_percent_encode(component, COMPONENT).to_string()&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-added&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;!-- diff cache key legowiki:diff:wikidiff2:1.12:old-181:rev-309:1.13.0 --&gt;
&lt;/table&gt;</summary>
		<author><name>Legoktm</name></author>
	</entry>
	<entry>
		<id>https://legoktm.com/w/index.php?title=Rust/encodeURIComponent&amp;diff=181&amp;oldid=prev</id>
		<title>Legoktm: Created page with &quot;&lt;source lang=&quot;rust&quot;&gt; fn encode_uri_component(component: &amp;str) -&gt; String {     use percent_encoding::{utf8_percent_encode, AsciiSet, CONTROLS};     const COMPONENT: &amp;AsciiSet =...&quot;</title>
		<link rel="alternate" type="text/html" href="https://legoktm.com/w/index.php?title=Rust/encodeURIComponent&amp;diff=181&amp;oldid=prev"/>
		<updated>2021-02-20T08:02:00Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;source lang=&amp;quot;rust&amp;quot;&amp;gt; fn encode_uri_component(component: &amp;amp;str) -&amp;gt; String {     use percent_encoding::{utf8_percent_encode, AsciiSet, CONTROLS};     const COMPONENT: &amp;amp;AsciiSet =...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;rust&amp;quot;&amp;gt;&lt;br /&gt;
fn encode_uri_component(component: &amp;amp;str) -&amp;gt; String {&lt;br /&gt;
    use percent_encoding::{utf8_percent_encode, AsciiSet, CONTROLS};&lt;br /&gt;
    const COMPONENT: &amp;amp;AsciiSet = &amp;amp;CONTROLS&lt;br /&gt;
        // query set&lt;br /&gt;
        .add(b&amp;#039; &amp;#039;)&lt;br /&gt;
        .add(b&amp;#039;&amp;quot;&amp;#039;)&lt;br /&gt;
        //.add(b&amp;#039;#&amp;#039;)&lt;br /&gt;
        .add(b&amp;#039;&amp;lt;&amp;#039;)&lt;br /&gt;
        .add(b&amp;#039;&amp;gt;&amp;#039;)&lt;br /&gt;
        // path set&lt;br /&gt;
        .add(b&amp;#039;?&amp;#039;)&lt;br /&gt;
        .add(b&amp;#039;`&amp;#039;)&lt;br /&gt;
        .add(b&amp;#039;{&amp;#039;)&lt;br /&gt;
        .add(b&amp;#039;}&amp;#039;)&lt;br /&gt;
        // userinfo set&lt;br /&gt;
        .add(b&amp;#039;/&amp;#039;)&lt;br /&gt;
        .add(b&amp;#039;:&amp;#039;)&lt;br /&gt;
        .add(b&amp;#039;;&amp;#039;)&lt;br /&gt;
        .add(b&amp;#039;=&amp;#039;)&lt;br /&gt;
        .add(b&amp;#039;@&amp;#039;)&lt;br /&gt;
        .add(b&amp;#039;[&amp;#039;)&lt;br /&gt;
        .add(b&amp;#039;\\&amp;#039;)&lt;br /&gt;
        .add(b&amp;#039;]&amp;#039;)&lt;br /&gt;
        .add(b&amp;#039;^&amp;#039;)&lt;br /&gt;
        // component set&lt;br /&gt;
        .add(b&amp;#039;$&amp;#039;)&lt;br /&gt;
        .add(b&amp;#039;%&amp;#039;)&lt;br /&gt;
        .add(b&amp;#039;&amp;amp;&amp;#039;)&lt;br /&gt;
        .add(b&amp;#039;+&amp;#039;)&lt;br /&gt;
        .add(b&amp;#039;,&amp;#039;);&lt;br /&gt;
    utf8_percent_encode(component, COMPONENT).to_string()&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Legoktm</name></author>
	</entry>
</feed>