FromUTF7 Method
Decodes the specified UTF-7M string into regular
string.
Usually, you do not need to manually decode mailbox names returned by the IMAP
server because the decoded name is always available via Mailbox.Name
property (undecoded name is also available, see Mailbox.OriginalName
property).
Manual decoding of MailBox.OriginalName makes no sense because
decoded mailbox name is available in Mailbox.Name property.
However, if your application stores MailBox.OriginalName in
a database back-end, you should use this method to decode mailbox name (make
it readable for users) retrieved from the database. This allows storing only
MailBox.OriginalName in the database (no need to also store
Mailbox.Name).
str = ObjectName.ToUTF7(SrcUTF7) |
Parameters: | ||
SrcUTF7 As String | Source text string in UTF-7-Modified | |
Return value As String | Decoded version of the source string |
Usage example:
{CodeExample}
See Also:
ToUTF7
method
UTF7EncodeMailboxNames property
Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.