Skip to content

Sending attachments with UTF-8 Characters #90

Closed
@chrisgehg

Description

@chrisgehg

I've been trying to send attachments with UTF-8 Characters using the Java api method, email.addAttachment() method, with a file named as 意_hello_字.jpg

Looking like this,
email.addAttachment("意_hello_字.jpg", pathToFile);

After being delivered through email, the image comes through fine, but it is named as ?hello?.jpg . Is this an api error? I found a similar error in the C# api, that I think was fixed by the team, sendgrid/sendgrid-csharp#54

I double checked to make sure that the String was correct in the IDE before it was passed in, and it was.

On top of this, the other email fields, subject and text body work fine with UTF-8 characters using the API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions