Article View: borland.public.cppbuilder.internet.web
Article #885utf-8 in filename of Content-Disposition: attachment;
From: Hans Galema
Date: Mon, 30 Jan 2006 14:36
Date: Mon, 30 Jan 2006 14:36
31 lines
1914 bytes
1914 bytes
In a mailfolderfile I see the following attachment: <from mail> Content-Type: image/pjpeg; name="=?UTF-8?B?c2FtZW4gbWV0IEFuZHLDqSBraWprZW4gbmFhciBQYXNjYWwuanBn?=" content-transfer-encoding: base64 Content-Disposition: attachment; filename="=?UTF-8?B?c2FtZW4gbWV0IEFuZHLDqSBraWprZW4gbmFhciBQYXNjYWwuanBn?=" <\from mail> This has to do with an utf-8 encoded filename. But also it looks as yet more encoded. The filename decodes to: samen met AndrοΏ½ kijken naar Pascal.jpg Is c2FtZW4gbWV0IEFuZHLDqSBraWprZW4gbmFhciBQYXNjYWwuanBn the piece that represents this? I googled a bit and read: <quote> > Is there any method or API to convert a file from UTF-8 to Ascii or Ansi ? Load the contents of the file, translate it to Unicode with MultiByteToWideChar(CP_UTF8, ...), and convert it to your required code page with WideCharToMultiByte. </quote> In my bcb5 I cannot find these functions. How to tackle this ? Hans.
Technical Details
Message-ID:
<43de245b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news2.volia.net!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: feeec,9857a2e9199d6815,start X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII Date: Mon, 30 Jan 2006 15:36:40 +0100 From: Hans Galema <notused@notused.nl> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.web Subject: utf-8 in filename of Content-Disposition: attachment; Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 145.98.201.248 Message-ID: <43de245b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1138631771 145.98.201.248 (30 Jan 2006 06:36:11 -0700) Lines: 31 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news2.volia.net!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail