File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes Getting attachment filename with special characters(JAVA MAIL API) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Getting attachment filename with special characters(JAVA MAIL API)" Watch "Getting attachment filename with special characters(JAVA MAIL API)" New topic
Author

Getting attachment filename with special characters(JAVA MAIL API)

N Naresh
Ranch Hand

Joined: Nov 04, 2008
Posts: 66
Hi i am getting problem while getting attachment filename with the speacial characters(file name contains special characters).
I am using MimePart object in order to get the filename with the special characters. How we can get filename with special characters, using MimePart interface of JavaMail Api. I am using mimepart.getFileName() to get the filename, but the filename is getting corrupted if it contains special characters, anybody could you please suggest me how we can get exact filename which contains special characters.
N Naresh
Ranch Hand

Joined: Nov 04, 2008
Posts: 66
anybody knows the answer? please help me.
N Naresh
Ranch Hand

Joined: Nov 04, 2008
Posts: 66
i am waiting for the answer, how to set encoding type of an email attachment which contains special characters.
The filename itself contains special characters.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19543
    
  16

Perhaps nobody knows an answer? I certainly don't, or I would have given it.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting attachment filename with special characters(JAVA MAIL API)
 
Similar Threads
Attachment FileName not displaying UTF-8 characters correctly
Editing Special Character
Filenames with special characters
Image to String to Image in a email
Removing special characters from a String