A complete list of available
code page identifiers
can be found in Microsoft's documentation for the Win32 API. This property value
directly corresponds to Windows code page identifiers and will accept any valid
code page in addition to the values listed above. Setting this property to an
invalid code page will result in an error.
By default, strings are converted to an array of bytes using the
UTF-8 code page. When decoding text, the characters are converted to Unicode
before they are returned to your application. If the decoded text appears to
be corrupted or characters are being replaced with question marks or other
symbols, it is likely the encoded string uses a different character set. Most
services use UTF-8 encoding because it can represent all Unicode characters.
If you set this property to an incorrect code page it may corrupt
the encoded text. For example, if code page 1252 (English) is specified
and you set the DecodedText property to a string which
contains Greek characters, the EncodedText property
will return an invalid value because it includes characters which cannot
be represented by that code page. If the text you wish to encode
includes non-ASCII text, it is recommended you always use the default
UTF-8 code page.