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

Use MemoryStream to enable correct encoding output (instead of utf-16) #840

Conversation

itssimple
Copy link
Contributor

In this pull request, I've changed how the request is serialized for the HTTP GET/POST requests.

The main reason is that, when you serialize with a StringBuilder or equivivalent, it will always output utf-16, regardless of what encoding you pass it.

So I've changed it to use a MemoryStream instead, when then also outputs the <?xml ...?> with the correct encoding (utf-8)

@andersjonsson andersjonsson merged commit 6e3430c into DigDes:develop Mar 18, 2022
@itssimple itssimple deleted the fix-http-request-encoding-output branch March 18, 2022 09:37
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