🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Simple MAPI and attachement file names

#9700
From: Regis St-Gelais
Date: Thu, 17 Jun 2004 20:03
18 lines
2444 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: <40d1f8fa$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!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:03:07 -0400
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: base64
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: <40d1f8fa$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1087502586 24.200.19.15 (17 Jun 2004 13:03:06 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail