Menu

Job fixed file name

ART Help
2024-04-17
2024-05-29
  • Makka Pakka

    Makka Pakka - 2024-04-17

    Hi
    The problem with garbled codes
    I created a job with Chinese in the fixed file name, and the sender and recipient nicknames.
    After the task is successfully executed, the names of senders and recipients in the emails received by outlook 2016 are abnormal, and the names of attachments are also abnormal.

    It is normal if you only use English;

    Is there any way to solve it?

    Please look at the picture, thank you!

     
  • Gerd S

    Gerd S - 2024-04-17

    Regarding the filename: What do you see in the Configure->Jobs menu? There is the last generated filename shown (see screenshot).
    Is the filename correct on this page? I think this could help to find out, if outlook/mailing is the reason or ART.

     
  • Makka Pakka

    Makka Pakka - 2024-04-18

    In Jobs menu interface, the file name is normal;

    So could it be an outlook or mail-server coding problem?

     
  • Gerd S

    Gerd S - 2024-04-18

    Can you try sending it to another email-address, which uses another client, like gmail?

     
  • Makka Pakka

    Makka Pakka - 2024-04-29

    I tried to use gmail to receive and send task emails, and the recipient nickname and attachment name of the email were normal in the gmail web page;
    However, the name of the sender and recipient, as well as the name of the attachment, will be abnormal when receiving with outlook
    What is the reason for this?

    I looked for the reason through AI and got this explanation:

    This is usually caused by the way the mail client handles the file name of the attachment. In order to ensure that the file name can be correctly displayed in different clients, it is necessary to call MimeUtility.encodeText() to encode the file name when setting the file name.

    code:
    filePart.setFileName(MimeUtility.encodeText(entry.getKey()));

    Since I don't know java, I'm not sure if the answer given by the AI is correct, it seems that such an exception only occurs in the outlook mail client.

    Thx!

     
  • Makka Pakka

    Makka Pakka - 2024-05-14

    After I tried to update to ART 8.0 today, the Chinese characters in the sender name and recipient name appear normally, as shown in Figure 1
    But there is still a problem with Chinese characters in the name of the attachment;
    The original file name and type of the attachment are shown in Figure 2

     
  • Timothy Anyona

    Timothy Anyona - 2024-05-20

    This seems to be an issue with the email client.

     

    Last edit: Timothy Anyona 2024-05-21
    • Makka Pakka

      Makka Pakka - 2024-05-29

      The latest version 8.2 of the task mail attachment name can be displayed normally.

      Thx!

       

Log in to post a comment.