<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Символы кодирования URL (UriEncode)]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15970&amp;type=atom" />
	<updated>2021-01-07T20:39:14Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15970</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Символы кодирования URL (UriEncode)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144552#p144552" />
			<content type="html"><![CDATA[<p>А вообще проще так:<br /></p><div class="codebox"><pre><code>str = http://forum.script-coding.com/viewforum.php?id=13

MsgBox % Encode(str)

Encode(str) {
   Loop, parse, str
      encoded .= Format(&quot;%{:02X}&quot;, Asc(A_LoopField))
   Return encoded
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-01-07T20:39:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144552#p144552</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Символы кодирования URL (UriEncode)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144551#p144551" />
			<content type="html"><![CDATA[<p>О, слишком сильно напрягли. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> Надо было чуть послабее:<br /></p><div class="codebox"><pre><code>UriEncode(Str)
{
   b_Format:=A_FormatInteger
   Data:=&quot;&quot;
   SetFormat, Integer, Hex
   Loop, Parse, Str
      Data.=&quot;%&quot; . ((StrLen(c:=SubStr(Asc(A_LoopField), 3))&lt;2) ? &quot;0&quot; . c:c)
   SetFormat, Integer, % b_Format
   Return, Data
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-01-07T20:28:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144551#p144551</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Символы кодирования URL (UriEncode)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144550#p144550" />
			<content type="html"><![CDATA[<p>Напряг и получилось)—<br /></p><div class="codebox"><pre><code>str =
(
http://forum.script-coding.com/viewforum.php?id=13
)

MsgBox % UriEncode(str)

UriEncode(Str)
{
   b_Format:=A_FormatInteger
   Data:=&quot;&quot;
   SetFormat, Integer, Hex
   Loop, Parse, Str
      If ((Asc(A_LoopField)))
         Data.=&quot;%&quot; . ((StrLen(c:=SubStr(Asc(A_LoopField), 3))&lt;2) ? &quot;0&quot; . c:c)
      Else
         Data.=A_LoopField
   SetFormat, Integer, % b_Format
   Return, Data
}</code></pre></div><p>Нужно для обработки, чтобы определенный текст не подвергся изменению.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2021-01-07T20:19:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144550#p144550</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Символы кодирования URL (UriEncode)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144549#p144549" />
			<content type="html"><![CDATA[<p>Во-первых, зачем это нужно? Во-вторых, догадайтесь сами, нужно слегка напрячь мозг. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-01-07T20:11:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144549#p144549</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Символы кодирования URL (UriEncode)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144548#p144548" />
			<content type="html"><![CDATA[<p>Как кодировать подряд все символы? —<br /></p><div class="codebox"><pre><code>str =
(
http://forum.script-coding.com/viewforum.php?id=13
)

MsgBox % UriEncode(str)

UriEncode(Str)
{
   b_Format:=A_FormatInteger
   Data:=&quot;&quot;
   SetFormat, Integer, Hex
   Loop, Parse, Str
      If ((Asc(A_LoopField)&gt;0x7f) Or (Asc(A_LoopField)&lt;0x30)
                                  Or (Asc(A_LoopField)=0x3d))
         Data.=&quot;%&quot; . ((StrLen(c:=SubStr(Asc(A_LoopField), 3))&lt;2) ? &quot;0&quot; . c:c)
      Else
         Data.=A_LoopField
   SetFormat, Integer, % b_Format
   Return, Data
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2021-01-07T19:29:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144548#p144548</id>
		</entry>
</feed>
