Unicode characters

  • Thread starter Thread starter mookashi
  • Start date Start date
M

mookashi

hi,

is there anyway to determine programmatically whether the user i
composing a mail in Unicode format.

Also is it possible to restrict the type of text to plain text
 
One way would be to check MailItem.InternetCodePage. Another would be
to get Item.Body and see if the text is Unicode by checking for 0x00
after every character.

You can't really restrict the user to plain text but if you get the
Body as a string you can use CDO 1.21 to set a Message corresponding
to the MailItem and use Message.Text = strBody, then clear any of the
RTF* property tags on the item to force it to plain text.
 
Back
Top