Open mail client with message - format problem with non-english characters

Apr 19 2007 4:48 AM

Hi forum,

I use the following code to open the users default mail client with values set in reciever, subject and body fields:

Dim msg As String = String.Format("mailto:{0}{1}", Uri.EscapeDataString("[email protected]"), "?")
msg &= String.Format("subject={0}{1}", Uri.EscapeDataString("subject text"), "&")
msg &= String.Format("body={0}", Uri.EscapeDataString("body text"))
System.Diagnostics.Process.Start(msg)

I've testet this with Thunderbird for languages like Thai and Danish and all seems to be working perfectly.

For Outlook (2003) strange things happens. Fx. "æ", "ø" and "å" are shown as "æ", "ø" and "Ã¥".
 
Should I be using an alternative escape function or does anyone have an idea on how to solve this?


Answers (1)