🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9699

Re: Simple MAPI and attachement file names

#9699
From: Regis St-Gelais
Date: Thu, 17 Jun 2004 20:05
41 lines
2038 bytes
Oups
Here is the same post with 8bits characters :)




I use Simple MAPI to send e-mails with file attachements

I have a probleme with accentuated caracteres in the attachement file name
but not in the subject and the body.

For example:

If the subject is: "R�gis"
In my e-mail client I see "R�gis" in the subject
That is OK.

If the the body is: "R�gis"
In my e-mail client I see "R�gis" in the body
That is also OK.

But if the file that I attache is "R�gis.txt"
The file is sended without problem but the file name become "Rigis.txt"

"i" is what you get if you mask "�" with 0x7f
It looks like the MAPI only use 7bits for the characteres in the file name.

I have tryed to convert "�" to "&eacute" but I receive "&eacute" and not "�"
I also tryed UTF-8 and wchars but without luck.

If I manualy use the client to send "R�gis.txt", I get "R�gis.txt" so it is
not a limitation of SMTP.

(For my tests, I use Outlook Express as e-mail client)

Any advice?

Thanks

-- 
R�gis
Technical Details
Message-ID: <40d1f983@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40d1f7d3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,2f06641c611c2c6d
X-Google-Attributes: gid10cc67,public
From: "Regis St-Gelais" <regis.st-gelais@NOSPAMlaubrass.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40d1f7d3@newsgroups.borland.com>
Subject: Re: Simple MAPI and attachement file names
Date: Thu, 17 Jun 2004 16:05:24 -0400
Lines: 43
MIME-Version: 1.0
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 24.200.19.15
Message-ID: <40d1f983@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1087502723 24.200.19.15 (17 Jun 2004 13:05:23 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail