This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 19649
    
  18

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Getting attachment filename with special characters(JAVA MAIL API)
 
Similar Threads
Filenames with special characters
Image to String to Image in a email
Editing Special Character
Removing special characters from a String
Attachment FileName not displaying UTF-8 characters correctly