Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Encoding problem sending mail from the client
Message
From
03/11/2005 05:05:02
Martin Van Krieken
Capgemini Nederland Bv
Utrecht, Netherlands
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Encoding problem sending mail from the client
Environment versions
Environment:
ASP.NET
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01064862
Message ID:
01064862
Views:
66
Hello,

I'm building an ASP.NET application. On one of the pages I included a hyperlink which sends an e-mail like this:
<A href='mailto:address@mail.com?subject=subject&body=Département'></a>
This works fine when the href contains only normal characters. When special characters are used (like é in the example) these characters are rendered wrong. The body from the example renders like this:

Département

I tried to encode the string with Server.HtmlEncode and Server.UrlEncode, but nothing works correct. I could rewrite the body to use hex charachers, but the content coms from a database.
Any ideas how encode the data?

TIA,
Martin
Reply
Map
View

Click here to load this message in the networking platform