<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Символы кодирования URL (UriEncode)]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=15970</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15970&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Символы кодирования URL (UriEncode)».]]></description>
		<lastBuildDate>Thu, 07 Jan 2021 20:39:14 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Символы кодирования URL (UriEncode)]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=144552#p144552</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Thu, 07 Jan 2021 20:39:14 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=144552#p144552</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Символы кодирования URL (UriEncode)]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=144551#p144551</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Thu, 07 Jan 2021 20:28:20 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=144551#p144551</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Символы кодирования URL (UriEncode)]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=144550#p144550</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Thu, 07 Jan 2021 20:19:26 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=144550#p144550</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Символы кодирования URL (UriEncode)]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=144549#p144549</link>
			<description><![CDATA[<p>Во-первых, зачем это нужно? Во-вторых, догадайтесь сами, нужно слегка напрячь мозг. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Thu, 07 Jan 2021 20:11:49 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=144549#p144549</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Символы кодирования URL (UriEncode)]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=144548#p144548</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Thu, 07 Jan 2021 19:29:08 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=144548#p144548</guid>
		</item>
	</channel>
</rss>
