cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

email attachment name converted in junk chracters when the attachment content is in non-english language

0 Likes
609

Dear Experts, We have an requirement of letting user attach their query in a screen where the end user can upload a file.The file may be of any language (e.g- Korean,Chinese,English etc). After that user as well as csr agent will receive an email with the attachment uploaded by him/her.In this case we are creating an email attachment model with the emailMessageModel to attach the Uploaded file.This functionality works fine for files which are in English but fails when the attachment is uploaded in non-English characters.In this failure scenario the attachment name is coming as junk characters.Attaching a sample failure scenario.

Can anyone help me understand why this is happening and how to solve this?I have debugged till ootb class and have seen in the emailAttachmentModel that the correct name is coming.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

Content of the file is getting changed because of the character encoding for the file is not in proper format.Please try to use UTF-8 encoding.

Former Member
0 Likes

is this helped?