Skip to content

UTF-8 in receiver name - HttpResponseException: Unsupported Media Type #118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
greglebonniec opened this issue Jul 7, 2016 · 3 comments
Closed
Labels
status: duplicate duplicate issue

Comments

@greglebonniec
Copy link

Issue Summary

When I try to send an email to a receiver with a special character in his name (character 'é'), I receive "org.apache.http.client.HttpResponseException: Unsupported Media Type".

The http response is :
{"errors":[{"message":"Unrecognized UTF8 Byte at position 121","field":null,"help":"http://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html#-Encoding-Errors"}]}"

If I do the same action with Curl, everything is OK.

Steps to Reproduce

  1. send a template with java library
  2. set the receiver name to "Grégory" (it is OK with "Gregory")

Technical details:

  • sendgrid-java 3.0.2
  • Java Version: 1.7.0_80
@thinkingserious thinkingserious added the status: duplicate duplicate issue label Jul 7, 2016
@thinkingserious
Copy link
Contributor

I believe these are related issues:
sendgrid/java-http-client#4
sendgrid/java-http-client#5

Please follow along there for updates. Those are on our list of fixes to implement. Thanks!

@DanailMinchev
Copy link

@thinkingserious could you please tell me when the fix will be merged? I am forced to use older 2.x version of the lib, because of this bug.
IMHO support for non latin characters for emails is important.

Thank you

@thinkingserious
Copy link
Contributor

Hi @DanailMinchev,

With any luck, that change will be merged by end of day today. Thanks for checking in!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate duplicate issue
Projects
None yet
Development

No branches or pull requests

3 participants