Skip to content

fix encoding for request body#56

Merged
ibalosh merged 1 commit intoActiveCampaign:mainfrom
pheyken:utf8-encoding
Mar 6, 2023
Merged

fix encoding for request body#56
ibalosh merged 1 commit intoActiveCampaign:mainfrom
pheyken:utf8-encoding

Conversation

@pheyken
Copy link
Copy Markdown
Contributor

@pheyken pheyken commented Mar 3, 2023

First of all, thank you very much for fixing #35 by moving to the Apache HTTP client!

While testing the new version, I noticed that special characters were not encoded correctly when sending an email.

Using setEntity without a ContentType defaults to text/plain with ISO 8859-1, explicitly setting it to application/json solves the encoding issue.

@ibalosh
Copy link
Copy Markdown
Contributor

ibalosh commented Mar 6, 2023

Thank you @pheyken

will see to check this out today

@ibalosh ibalosh merged commit 2bcea7b into ActiveCampaign:main Mar 6, 2023
@ibalosh
Copy link
Copy Markdown
Contributor

ibalosh commented Mar 6, 2023

thank you @pheyken for reproducing and creating integration test for the fix too!

@ibalosh
Copy link
Copy Markdown
Contributor

ibalosh commented Mar 6, 2023

Fix is applied to main, I am waiting for maven server to release it, they seem to have some issues, should be out in couple of hours

@ibalosh
Copy link
Copy Markdown
Contributor

ibalosh commented Mar 6, 2023

released

@pheyken pheyken deleted the utf8-encoding branch March 16, 2023 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants