Skip to content
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

Response BodyAsString loses BodyData.Encoding when UseTransformer = true #458

Closed
coxstl opened this issue Apr 28, 2020 · 3 comments
Closed
Assignees
Labels

Comments

@coxstl
Copy link

coxstl commented Apr 28, 2020

I am mocking WCF soap messages with WireMock. I am also using Unicode encoding. When I set UseTransformer to true, I get "The encoding in the declaration 'utf-16' does not match the encoding of the document 'utf-8'." When I set the Encoding = original.BodyData.Encoding in the ResponseMessageTransformer.TransformBodyAsString, the error goes away. Can you add that line to that file? It would help other people who still have to work with WCF projects.

@StefH StefH self-assigned this Apr 28, 2020
@StefH StefH added the bug label Apr 28, 2020
@StefH
Copy link
Collaborator

StefH commented Apr 28, 2020

Can you try MyGet version WireMock.Net.1.2.5-ci-13242.nupkg?

@coxstl
Copy link
Author

coxstl commented Apr 29, 2020

That worked like a charm. Thank you.

@coxstl coxstl closed this as completed Apr 29, 2020
@StefH
Copy link
Collaborator

StefH commented Apr 29, 2020

Official version 1.2.6 is released

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

No branches or pull requests

2 participants