Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1096451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:17:11+00:00 2026-05-17T00:17:11+00:00

Recently i have follow the Sun online guide on Java Mail API to send

  • 0

Recently i have follow the Sun online guide on Java Mail API to send email, download email and download attachment. When comes to extracting attachment from an email, my code looks very similar to this post Download attachments using Java Mail

However, i encounter a problem when the user send the email attachment file name with vietnamese character, something like this: hệ thống thông.xls

When the code tries to get the filename with: bodyPart.getFileName() , the return file name is like this: h? th?ng =?iso-8859-1?b?dGj0bmcueGxz?=

I have try the following but without any luck

1) set Java VM parameter: -Dfile.encoding=UTF-8

2) try to look further into the Java Mail API on UTF-8 Character support, but cant find any

Any hint will help. Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T00:17:12+00:00Added an answer on May 17, 2026 at 12:17 am

    ISO-8859-1 is the Latin-1 character set. It only includes Western European characters. So that might be a hint. Maybe the problem is with the client that’s sending the attachment? Take a look at the raw source for the message, check if any of the headers say anything about the text encoding.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently started reading about Java EE6 and in the examples I follow
I recently have a problem that my java code works perfectly ok on my
I have recently learnt how to program in java, I was looking at some
I have a follow up to complicated mysql question that I recently asked: Show
Ok, recently i have written a paint application in Java. Small program similar to
I recently have just been able to populate my core data DB. I have
I recently have convert my project from VB6 to VB.NET2008, after the convert here
I have been practicing TDD in C# for several years now and recently have
I'm using Visual Studio 2005 on a Windows XP SP3 machine and recently have
Recently I have released my app into the US AppStore. Now I Planed for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.