This activity provides methods for encoding URLs when processing Web requests.
Supported Encoders:
Encoder | Description |
Url Encoder | Encodes a URL string. If characters such as blanks and punctuation are passed in an HTTP stream, they might be misinterpreted at the receiving end. URL encoding converts characters that are not allowed in a URL into character-entity equivalents; URL decoding reverses the encoding. For example, when embedded in a block of text to be transmitted in a URL, thecharacters < and > are encoded as %3c and %3e. |
Url Path Encoder | Encodes the path portion of a URL string for reliable HTTP transmission from the Web server to a client. URL encoding ensures that all browsers will correctly transmit text in URL strings. Characters such as ?, &, /, and spaces may be truncated or corrupted by some browsers so those characters must be encoded in <A> tags or in query strings where the strings may be re-sentby a browser in a request string. |
Html Encoder | Converts a string to an HTML-encoded string. If characters such as blanks and punctuation are passed in an HTTP stream, they might be misinterpreted at the receiving end. HTML encoding converts charactersthat are not allowed in HTML into character-entity equivalents; HTML |
decoding reverses the encoding. For example, when embedded in a block of text, the characters < and > are encoded as < and > for HTTPtransmission. | |
Html Attribute Encoder | Minimally converts a string into an HTML-encoded string. method convertsonly quotation marks (“), ampersands (&), and left angle brackets (<) to equivalent character entities. |
Note: You can encode a URL using with the Url Encoder or the Url Path Encoder. However, the methods return different results. The Url Encoder converts each space character to a plus character (+). The Url Path Encoder converts each space character into the string “%20”, which represents a space in hexadecimal notation. Use the Url Path Encoder method when you encode the path portion of a URL in order to guarantee a consistent decoded URL, regardless of which platform or browser performs the decoding.
SharePoint Workflow Designer Phrase
Encode this text using this encoder and store in Variable: variable.
Parameters
Parameter | Description |
this text | Original text |
this encoder | Encoder. Activity supports several encoders:Url EncoderUrl Path EncoderHtml EncoderHtml Attribute Encoder |
variable | This activity will place result into an output variable |