<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
	<id>http://i.bnu.edu.cn/wiki/index.php?action=history&amp;feed=atom&amp;title=LlEscapeURL</id>
	<title>LlEscapeURL - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="http://i.bnu.edu.cn/wiki/index.php?action=history&amp;feed=atom&amp;title=LlEscapeURL"/>
	<link rel="alternate" type="text/html" href="http://i.bnu.edu.cn/wiki/index.php?title=LlEscapeURL&amp;action=history"/>
	<updated>2026-06-01T03:38:57Z</updated>
	<subtitle>本wiki的该页面的版本历史</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>http://i.bnu.edu.cn/wiki/index.php?title=LlEscapeURL&amp;diff=292&amp;oldid=prev</id>
		<title>2020年4月16日 (四) 04:01 Mkx</title>
		<link rel="alternate" type="text/html" href="http://i.bnu.edu.cn/wiki/index.php?title=LlEscapeURL&amp;diff=292&amp;oldid=prev"/>
		<updated>2020-04-16T04:01:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&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;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2020年4月16日 (四) 04:01的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot; &gt;第5行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第5行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;|函数名 = Function:&amp;#160; string llEscapeURL( string url );&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;|函数名 = Function:&amp;#160; string llEscapeURL( string url );&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;|参数= 参数：string url – A (preferably valid and unescaped URL) string. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;|参数= 参数：string url – A (preferably valid and unescaped URL) string. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; 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;|返回值= &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;返回值：Returns a string that is the escaped&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;encoded version of url, replacing spaces with &amp;quot;&lt;/del&gt;%&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;20&amp;quot; etc. The function will escape any character not in &lt;/del&gt;[a-zA-Z0-9] &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;to &amp;quot;&lt;/del&gt;%&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;xx&amp;quot; where &amp;quot;xx&amp;quot; is the hexadecimal value of the character in &lt;/del&gt;UTF-8 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;byte form.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;|返回值= &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;返回值：返回一个字符串，该字符串是url的转义&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;编码版本，用“&lt;/ins&gt;%&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;20”等替换空格。该函数将把不属于&lt;/ins&gt;[a-zA-Z0-9]&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;的任何字符转义为“&lt;/ins&gt;%&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;xx”，其中“xx”是字符的十六进制值，以[[&lt;/ins&gt;UTF-8&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]]字节形式表示。&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; 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;|注意事项=&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The function is not appropriate for escaping a url all at once, because the &amp;quot;&lt;/del&gt;:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot; after the protocol, and all of the &amp;quot;&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot; characters delimiting the various parts, will be escaped. Instead, build the url in parts&lt;/del&gt;; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;escaping parts of the path and query string arguments as needed. &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;|注意事项=&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;该函数不适合一次性转义url，因为协议之后的“&lt;/ins&gt;:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;”以及所有分隔各个部分的“&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;”字符都将转义。相反，应该部分构建url&lt;/ins&gt;;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;根据需要转义路径和查询字符串参数。&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; 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;#160;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;/table&gt;</summary>
		<author><name>Mkx</name></author>
		
	</entry>
	<entry>
		<id>http://i.bnu.edu.cn/wiki/index.php?title=LlEscapeURL&amp;diff=229&amp;oldid=prev</id>
		<title>Mkx：创建页面，内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}   {{函数详情 |函数名 = Function:  string llEscapeURL( string url ); |参数= 参数：strin…”</title>
		<link rel="alternate" type="text/html" href="http://i.bnu.edu.cn/wiki/index.php?title=LlEscapeURL&amp;diff=229&amp;oldid=prev"/>
		<updated>2020-04-13T03:24:06Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}   {{函数详情 |函数名 = Function:  string llEscapeURL( string url ); |参数= 参数：strin…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{函数详情&lt;br /&gt;
|函数名 = Function:  string llEscapeURL( string url );&lt;br /&gt;
|参数= 参数：string url – A (preferably valid and unescaped URL) string. &lt;br /&gt;
|返回值= 返回值：Returns a string that is the escaped/encoded version of url, replacing spaces with &amp;quot;%20&amp;quot; etc. The function will escape any character not in [a-zA-Z0-9] to &amp;quot;%xx&amp;quot; where &amp;quot;xx&amp;quot; is the hexadecimal value of the character in UTF-8 byte form.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|注意事项=The function is not appropriate for escaping a url all at once, because the &amp;quot;:&amp;quot; after the protocol, and all of the &amp;quot;/&amp;quot; characters delimiting the various parts, will be escaped. Instead, build the url in parts; escaping parts of the path and query string arguments as needed. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|示例=&lt;br /&gt;
示例1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
string str = &amp;quot;http://wiki.secondlife.com/wiki/LSL Portal&amp;quot;;&lt;br /&gt;
 &lt;br /&gt;
default&lt;br /&gt;
{&lt;br /&gt;
    state_entry()&lt;br /&gt;
    {&lt;br /&gt;
        llOwnerSay(&amp;quot;Plain string:\n\t&amp;quot; + str);&lt;br /&gt;
        // output: &amp;quot;http://wiki.secondlife.com/wiki/LSL Portal&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
        llOwnerSay(&amp;quot;Escaped string:\n\t&amp;quot; + llEscapeURL(str));&lt;br /&gt;
        // output: &amp;quot;http%3A%2F%2Fwiki%2Esecondlife%2Ecom%2Fwiki%2FLSL%20Portal&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
        llOwnerSay(&amp;quot;Escaped string unescaped again:\n\t&amp;quot; + llUnescapeURL( llEscapeURL(str) ));&lt;br /&gt;
        // output: &amp;quot;http://wiki.secondlife.com/wiki/LSL Portal&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
        // because escaping and unescaping are exact opposite&lt;br /&gt;
        // and unescaping an escaped string returns the original&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
        //  For readability's sake it would make more sense to do:&lt;br /&gt;
        llOwnerSay(&amp;quot;For readability's sake:\n\t&amp;quot; + &amp;quot;http://wiki.secondlife.com/wiki/&amp;quot; + llEscapeURL(&amp;quot;LSL Portal&amp;quot;));&lt;br /&gt;
        // output: &amp;quot;http://wiki.secondlife.com/wiki/LSL%20Portal&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|相关函数= [[llUnescapeURL]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Mkx</name></author>
		
	</entry>
</feed>