Home » U++ Library support » U++ Widgets - General questions or Mixed problems » UPP app -> Ext EXE (send email) wrong charset
UPP app -> Ext EXE (send email) wrong charset [message #23889] |
Tue, 01 December 2009 12:49 |
alex100
Messages: 118 Registered: November 2007
|
Experienced Member |
|
|
I all
I have a upp app that is using an external exe to send email via google.
I am launching the external exe as follows:
ShellExecute(NULL, "open", "GmailSend.exe", "user1@gmail.com Teste Ola", ".", SW_SHOWDEFAULT);
(it is the email, subject and body)
The email is successfully sent but charset is not correct.
I have source code of the external exe and I see that subject and body are formated using utf8. If I send the mail from windows command line everything is fine but using the upp app
the charset is not correct.
On upp app i put this:
SetDefaultCharset(CHARSET_UTF8);
But it continues to have wrong charset on final email.
How to solve this?
Many thanks
Alex
|
|
|
Re: UPP app -> Ext EXE (send email) wrong charset [message #23890 is a reply to message #23889] |
Tue, 01 December 2009 13:18 |
|
koldo
Messages: 3398 Registered: August 2008
|
Senior Veteran |
|
|
Hello Alex100
Charset always make me sweat, but try with this:
ShellExecuteW(NULL, L"open", L"GmailSend.exe", ToCharset(CHARSET_UTF8, "user1@gmail.com Teste Ola"), L".", SW_SHOWDEFAULT);
Perhaps this also works (after SetDefaultCharset(CHARSET_UTF8);):
ShellExecuteW(NULL, L"open", L"GmailSend.exe", WString("user1@gmail.com Teste Ola"), L".", SW_SHOWDEFAULT);
Best regards
Koldo
Best regards
IƱaki
|
|
|
|
Goto Forum:
Current Time: Fri Nov 01 00:16:52 CET 2024
Total time taken to generate the page: 0.02765 seconds
|