mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
Response BodyAsString loses BodyData.Encoding when UseTransformer = true #267
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @coxstl on GitHub (Apr 28, 2020).
Originally assigned to: @StefH on GitHub.
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 commented on GitHub (Apr 28, 2020):
Can you try MyGet version WireMock.Net.1.2.5-ci-13242.nupkg?
@coxstl commented on GitHub (Apr 29, 2020):
That worked like a charm. Thank you.
@StefH commented on GitHub (Apr 29, 2020):
Official version 1.2.6 is released