Login  
Search All Forums
Dart Home | PowerTCP Mail for ActiveX | Custom Development Reply | PowerTCP Mail for ActiveX Topics | Forums   
AuthorForum: PowerTCP Mail for ActiveX
Topic: MailTool.dll august update - no way to choose charset for headers
mhp

From: new york, NY USA
Posts: 47
Member Since: 04/24/02
posted August 25, 2004 2:25 PM

The latest August update of MailTool.dll provides a way to receive mails and converts them properly into unicode strings when dealing with them through VB/ASP, but there is still a critical piece missing.

When sending mail, you can give Dart a unicode string as say Message.AddText sMsg, "UTF-8" and dart will correctly convert the unicode to utf-8, but there is no way to do this for headers (such as subject or from or to). So if I have a Unicode string with say a chinese name in it, and I want that to be the From, Dart incorrectly interprets this to mean I am using the current code page of the system (which could be windows-1252, or anything else where the chinese chars make no sense). Dart tries to do the QP encoding on the header, but it is just wrong (because I really want to specify the charset here). Either you should just always convert to UTF-8 for headers, or give us the option to specify the charset for them. It's 99% there...
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted August 25, 2004 2:36 PM

Thanks for bringing this to our attention. I have issued a feature request and you will be notified if it is implemented.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted August 25, 2004 2:43 PM

In re-reading your post, I see a question I failed to ask:

Did you try setting the Header.Charset property?(it's new)
mhp

From: new york, NY USA
Posts: 47
Member Since: 04/24/02
posted August 25, 2004 2:46 PM

I realize in soft. dev. the semantics between feature req. and bug can make a big difference, so I'd like to suggest you change the report to a bug report. Here's why...

1. pretend I'm in russia
2. go to "Regional and Language Options" control panel, advanced tab, and set the top dropdown to "Russian". This sets your system code page to koi8. windows cyrillic.
3. give a dart control a unicode string (which could be any language), say an icelandic person sent me a message and I'm replying and there name is "veğriğ" (<-- dont know if that will post correctly) so it's in the to header.
4. dart qp encodes the header using the koi8 charset. This is incorrect and a bug. It can't possibly know the charset of my string unless I specify it. It can't force it to be the system codepage because this only allows me to send things in russian. The only thing it could do without more info from me is use utf-8 .. the only charset which could encode any unicode string.
mhp

From: new york, NY USA
Posts: 47
Member Since: 04/24/02
posted August 25, 2004 2:47 PM

Header.Charset??? Excellent. That's *exactly* what I need.

Thanks tony!
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted August 25, 2004 2:49 PM

That's great! I take it the feature request is now moot?
mhp

From: new york, NY USA
Posts: 47
Member Since: 04/24/02
posted August 25, 2004 3:33 PM

Yup, except for the extra long header not being folded correctly part... works as expected.
Reply | PowerTCP Mail for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX