|
楼主 |
发表于 2008-1-25 01:10
|
显示全部楼层
RE 这个可以看成是正则表达式,负责修改有问题的参数
Regular expression list used to URL encode query parameter values
URL Encoding
Certain characters can cause problems when used in query parameter values.
For example, for a WebTrends query parameter assignment of WT.ti="The Gettysburg Address"; SDC writes the following value to the log file:
&WT.ti=The Gettysburg Address
The space characters in this value cause problems because the space character is used to separate fields within a log file.
The solution is to URL encode all query parameter values.
URL encoding means replacing certain characters with their hexadecimal equivalents of the form %XX where % is the escaping character and XX is the character’s numeric ASCII value.
URL encoded characters are properly rendered in WebTrends reports.
Continuing with this example, the URL-encoded form is as follows:
&WT.ti=The%20Gettysburg%20Address
Note that space characters have been replaced by %20.
The tag URL encodes the following characters: tab, space, #, &, +, ?, ", \, and non-breaking spaces.
These characters are defined in the regular expression list.
The regular expression list contains regular expressions to search for, and the corresponding %XX replacement strings.
Regular expression properties are used as arguments to the string.replace method.
The tag URL encodes parameter values by passing them as arguments into the dcsEscape function.
[ 本帖最后由 smallpig 于 2008-1-25 01:12 编辑 ] |
|