Outlook 2010; Email; % gets ?;

Windows specific forum
HanPBF
Enthusiast
Enthusiast
Posts: 564
Joined: Fri Feb 19, 2010 3:42 am

Outlook 2010; Email; % gets ?;

Post by HanPBF »

Hello PB users,

I have a problem when creating an email from PureBasic with

Code: Select all

Protected MailTo.s = "mailto:" + _To + StrCC + StrBCC + "&subject=" + Subject + "&body=" + Body + ""
ShellExecute_(#Null, "open", MailTo, #Null, #Null, #SW_SHOWNORMAL)
The email contains a "%" symbol which gets ? in Outlook 2010.

I consider this not a PureBasic problem; I did found many links concerning this about UTF-8, etc.
I use "create unicode executable" and I think PB uses also UTF-8.

In HTML I could use ampersand encoding like " or something like this.
But this did not work for Outlook; even changing text format "HTML", "only text", "richt text" did not work.

Anybody with an idea iwhat I could do?
Can % symbol be inserted in email by some other special symbols=



Thanks a lot!
Regards
HanPBF
Enthusiast
Enthusiast
Posts: 564
Joined: Fri Feb 19, 2010 3:42 am

Re: Outlook 2010; Email; % gets ?;

Post by HanPBF »

O.k. solved and kept for reference.

using %25 is needed...

https://en.wikipedia.org/wiki/Percent-encoding
Post Reply