1

The problem I'm having is an extra  Chracter being added before the ® symbol in the body of an email created from a mailto: link in flash. This only happens on the PC in MS Outlook

Instead of: MasterCard®!

It shows up as

MasterCard®!

The code in flash AS3:

var req = new URLRequest("mailto:");
var variables = new URLVariables();
variables.body="Blah Blah Blah MasterCard®!";
variables.subject="Make some music!";
req.data = variables;
req.method = URLRequestMethod.GET;

addEventListener(MouseEvent.CLICK, onClick);

function onClick(e:MouseEvent) {
        navigateToURL(req, "_self");
    }
}

This works fine on the mac with mac mail.

Nick
  • 11
  • 1

2 Answers2

0

I also had the same issue after url encode in JavaScript.

This is how I fixed it.

var content = encodeURIComponent(emailBody); // encode the email body to send to email client via mailto:
content = content.replace("%C3%82", ""); // remove the junk char before reg symbol which was inserted during encoding.

%C3%82 is causing the issue  , so I replaced and its worked fine.

Please note that this is JavaScript code, you need to check how to do it in ActionScript

kiranvj
  • 32,342
  • 7
  • 71
  • 76
0

the problem is you are changing the encoding of the text make sure that what you are sending it to is working in the same encoding as you are sending.

check out similar posts like this one for an explination.

Community
  • 1
  • 1
longstaff
  • 2,061
  • 1
  • 12
  • 15