mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
Returned files default encoding #306
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 @tomatualus on GitHub (Oct 16, 2020).
Hello.
I am wondering, if there is a default encoding when using BodyAsFile?
"Response": { "StatusCode": 200, "Headers": { "Content-Type": "text/xml; charset=UTF-8" }, "BodyAsFile": "./WireMockMappings/TestResponse.xml", "UseTransformer": false }I have set up my response exactly as above, but the returned file's encoding is UTF-16 (i can see the BOM or whatever at the start).
Also here you can see that the files encoding us UTF-8.