Outlook is unable to accept french-accented characters in my mailto string?
Outlook is causing some problems when being passed a mailto string with accented characters in it. Changing the codepage for my entire webpage that has this string on it solves this problem, but that causes ot开发者_如何转开发her problems in the system, so I would not like to do that.
A string like such returns a lot of garbage characters:
"mailto:Helpdesk-someemail@email.com?subject=Mon bâtiment / Départementé / Bureau n'est pas répertorié"
Meanwhile, this cuts off the character after the "D"
"mailto:someemail@email.com?subject=Mon bâtiment / Départementé / Bureau n'est pas répertorié"
What gives? Is there no way to make this work? I am in Canada, so some regional issues might be taking effect here?
Maybe you can try this generator.
Basically, you need to use the hexadecimal value of the character in the page's encoding preceded by a percent sign. For UTF-8, your â
is %C3%A2
.
See the below link you will find the solution for your problem
try it Does C# have an equivalent to JavaScript's encodeURIComponent()?
精彩评论