none
MailAddress and unicode characters RRS feed

  • Question

  • MailAddress is throwing a FormatException with Unicode characters in the address field + looks like the encoding you can specify in the constructor is for the display name. Is this by design? What is the recommended way of handling unicode characters in the email address?

    try
    {
        MailAddress a = new MailAddress("リンク@blah.com");
    }
    catch (Exception e)
    {
        valid = false;
    }

    Monday, March 25, 2013 9:41 AM

All replies