Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Does Email::MIME support attachments of files with utf8 filename? My code crashed, and I think that may be the problem. Can anyone verify it? EDIT: I have a text file which is MIME-formatted (this is actually an email I got, and saved as a file. Never mind). The file itself is long, but I think the relevant part is:
As you see, there's an attachment in the message, which happens to be a pdf file with non-ascii name. Now, my code is:
The code generated the following message: Unquoted '"' not allowed at ./chfn.pl line 6. Missing semicolon before parameter '"מילי דאבות.pdf"' at ./chfn.pl line 6. The error is not fatal, that is, the code continues to run after generating this message. However I cannot extract the filename of the attachment using Email::MIME methods. Now, Consider this:
The result is no errors. I conclude that the problem is the non-ascii filename of the attachment. BTW ths OS is Linux, not Windows. Thanks a lot! In reply to Email::MIME support for utf8 filename by Arik123
|
|