good chemistry is complicated,
and a little bit messy -LW
MIME::Parser::Filer and filenames in Simplified Chineseby uxbod (Initiate)
|on Nov 17, 2011 at 11:41 UTC||Need Help??|
uxbod has asked for the
wisdom of the Perl Monks concerning the following question:
I am working on a project where I need to be able to extract attachments from an email that have been added in Simplified Chinese. The problem is that when they are extract to the file system I end up with names like ????.doc!
I put together a little test script to show what I mean:
and when this runs I see the following output:
As you can see the last two MIME entities are encoded using gb2312 but how can I get that to be the correct name on the file system ? If I extract the file through an email client and transfer it across to that system it does look okay:
-rw-r--r-- 1 uxbod uxbod 34304 Nov 15 10:42 撰稿材料.doc
Any help would be very very much appreciated.