my dog learned polymorphism*
The moose likes Other JSE/JEE APIs and the fly likes JavaMail: File extension omitted by invoking part.getFileName 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 "JavaMail: File extension omitted by invoking part.getFileName" Watch "JavaMail: File extension omitted by invoking part.getFileName" New topic
Author

JavaMail: File extension omitted by invoking part.getFileName

Ulrich Heeger
Ranch Hand

Joined: Jun 06, 2003
Posts: 266
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.
Example:
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
Greetings
Ulrich
 
Don't get me started about those stupid light bulbs.
 
subject: JavaMail: File extension omitted by invoking part.getFileName
 
Similar Threads
Problem preserving accented characters when writing text to file
Filenames with special characters
Can anyone please help me solve my XSLT questions
Creating File Name containg french characters using java.io.file
Handling Chinese characters while retriving fromDB using JDBC