File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaMail: File extension omitted by invoking part.getFileName

Ulrich Heeger
Ranch Hand
Posts: 266
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone
I have a question: When I invoke the getFileName()-method on a part and the fileName contains ISO 8859-1 character set, then it might be that the file extension is omitted, when the fileName contains whitespaces.
Filename: Comments f�r test.doc
Result of part.getFileName():

Filename: Commentsf�rtest.doc
Result of part.getFileName():

Is this a bug? Do you know a workaround to get the filename with the file extension?

Thanks a lot in advance
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic