Skip to content

Conversation

mbp
Copy link
Contributor

@mbp mbp commented Dec 9, 2013

There is a mismatch between Json and Xml serialization, with regards to CultureInfo. The SimpleJson serializer, takes care of serializing with CultureInfo.InvariantCulture:

https://github.com/restsharp/RestSharp/blob/master/RestSharp/SimpleJson.cs#L1112

This pull requests makes the same changes for the XmlSerializer.

This problem occured for me when working with decimals in a culture where comma and not dot was used for decimal separater.

haacked added a commit that referenced this pull request Dec 9, 2013
@haacked haacked merged commit 516c4a2 into restsharp:master Dec 9, 2013
@haacked
Copy link
Contributor

haacked commented Dec 9, 2013

thumbs-up-abed-2

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