Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Niels Pedersen 18 posts 49 karma points
    May 29, 2012 @ 12:40
    Niels Pedersen
    0

    Special characters when using extended mail

    Hi,

    I have a problem with danish characters when using the type "Send email, extened". When i use the standard Send email-type there is no problem with the characters, but when i switch to extended the characters Æ Ø Å in the mail is displayed as "?". Like this:

    "s? han m?lte ud til et skab der var 170/75 cm. i h?jden, det kan lade sig g?re n?r skuffen under det nuv?rende skab fjernes, det skulle jeg selv g?re. et par dage efter ringede han og fortalte at det nye skab var p? vej, desv?rre er det ikke n?et"

    Hope somebody can help me out :)

  • Vishal G.P 62 posts 122 karma points
    Jul 18, 2012 @ 15:15
    Vishal G.P
    0

    i have this same problem for a client.... any solutions?

  • Vishal G.P 62 posts 122 karma points
    Jul 18, 2012 @ 16:15
    Vishal G.P
    0

    I downloaded the sourcecode and saw that when sending the mail the BodyEncoding was not set properly.. So i added a line as below with Unicode and now my emails are sent with the proper characters...

    var mailMessage = new MailMessage
                        {
                            From = FromMailAddress,
                            Subject = this.Subject, 
                            ReplyTo = new MailAddress(this.ReplyTo), 
                            IsBodyHtml = true,
                            BodyEncoding = Encoding.Unicode
                        };
Please Sign in or register to post replies

Write your reply to:

Draft