Page 1 of 1

Outlook 2010; Email; % gets ?;

Posted: Fri May 20, 2016 6:57 am
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

Re: Outlook 2010; Email; % gets ?;

Posted: Fri May 20, 2016 9:39 am
by HanPBF
O.k. solved and kept for reference.

using %25 is needed...

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