Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lhyqy5
Copy link
Contributor

@lhyqy5 lhyqy5 commented Mar 9, 2019

fix #625

@dnfclas
Copy link

dnfclas commented Mar 9, 2019

CLA assistant check
All CLA requirements met.

using (var writer = XmlWriter.Create(output, settings.XmlReaderWriterSettings.WriterSettings))
using (var writer = XmlWriter.Create(stream, settings.XmlReaderWriterSettings.WriterSettings))
{
var encoding = settings.XmlReaderWriterSettings.WriterSettings?.Encoding ?? Encoding.Unicode;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What should the default be? Unicode or UTF8? Any reason for Unicode over UTF8 as the default?

Copy link
Contributor Author

@lhyqy5 lhyqy5 Mar 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

StringWriter default encoding is Unicode, so I keep it, and utf-16 is the previous behavior

@clairernovotny clairernovotny merged commit 4c8febe into reactiveui:master Mar 12, 2019
@lock lock bot locked and limited conversation to collaborators Jun 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

xml output encoding dose not follow XmlWriterSettings encoding setting

3 participants