Download HarePoint Workflow Extensions Manual

Transcript
Parameters:
specified Base64 text - Input text, expression, item field or variable.
default encoding - One from five available encodings.
Variable: ConvertedText - Output string variable.
Examples:
Let's encode German word 'Grüß' with different encodings with 'Converts Text to Base64' activity on the
machine with Russian ANSI code page and decode results back with the same encodings with 'Converts
Base64 to Text' activity.

default: encoded string 'R3J1Pw==', decoded string 'Gru '

ASCII: encoded string 'R3I/Pw==', decoded string 'Gr '

Unicode: encoded string 'RwByAPwA3wA=', decoded string 'Grüß'

UTF8: encoded string 'R3LDvMOf', decoded string 'Grüß'

UTF32: encoded string 'RwAAAHIAAAD8AAAA3wAAAA==', decoded string 'Grüß'
As you can see, all three Unicode encodings save the German national characters unchanged. With 7-bit
ASCII encoding, all national German characters were lost. In the case of default encoding, input string
was initially mapped to Russian ANSI code page, where the German 'ü' was mapped to latin 'u' and the
last 'ß' was lost, because it has no suitable mapping to Russian code page.
16.7 Converts Text to Base64
Converts specified text to Base64 using default encoding and store result in Variable: ConvertedText1.
This workflow activity will encode specified text with one from five available encodings and convert
encoded text to Base64.
Available encodings:

default - 8-bit encoding of the current operating system's ANSI code page.

ASCII - 7-bit ASCII encoding.

Unicode - also known as UTF16, represents each character as a sequence of one or two 16-bit
integers.
201
IV. HarePoint Activities and Conditions | HarePoint.Com