Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Issue : Java Mail API returning Invalid Characters in File Name

  1. #1
    Junior Member
    Join Date
    Jun 2014
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Issue : Java Mail API returning Invalid Characters in File Name

    Hi Everyone

    I am facing an issue with my java program, it is returning/storing file name with some junk characters i,e the file name with some '?','=' and '_'. Below is the example of file names.

    Ex : abc.doc
    ab=?Windows-1252?Q?=c.do?c

    =?Windows-1252?Q? (prefixed with space)
    =?utf-8?Q? (prefixed with space)
    =?iso-8859-1?Q? (prefixed with space)

    Can any one help me out from this issue..

    Thanks & Regards,
    Hays


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Issue : Java Mail API returning Invalid Characters in File Name

    Show the code that obtains or constructs the file names and then stores them or writes them to the file, preferably a runnable example. Also show what you're expecting the code to do.

Similar Threads

  1. Replies: 0
    Last Post: November 20th, 2012, 05:30 AM
  2. Problem with code recognizing invalid characters after spaces....
    By Eclecstatic in forum What's Wrong With My Code?
    Replies: 4
    Last Post: September 22nd, 2012, 10:14 AM
  3. How to Send emails from Google Mail using JavaMail API
    By JavaPF in forum Java SE API Tutorials
    Replies: 3
    Last Post: February 26th, 2012, 04:21 PM
  4. [SOLVED] Writing Integers to .txt File; Returning Random Characters Instead of Integers
    By verbicidalmaniac in forum File I/O & Other I/O Streams
    Replies: 2
    Last Post: March 8th, 2011, 09:42 PM
  5. How to Send emails from Google Mail using JavaMail API
    By JavaPF in forum Java Code Snippets and Tutorials
    Replies: 1
    Last Post: November 14th, 2010, 11:00 AM