Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to next message
alex100 is currently offline  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 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3354
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
Re: UPP app -> Ext EXE (send email) wrong charset [message #23891 is a reply to message #23890] Tue, 01 December 2009 14:46 Go to previous message
alex100 is currently offline  alex100
Messages: 118
Registered: November 2007
Experienced Member
It works!!

Thank you very much!!

Alex
Previous Topic: up & down within ColumnList moves focus out
Next Topic: AutoScroller code snippet here
Goto Forum:
  


Current Time: Thu Mar 28 12:53:53 CET 2024

Total time taken to generate the page: 0.01198 seconds