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

Specify culture when serializing data #512

Open
janousek opened this issue Mar 5, 2020 · 1 comment
Open

Specify culture when serializing data #512

janousek opened this issue Mar 5, 2020 · 1 comment
Labels
code-generation issue deals with generated code status: help wanted requesting help from the community type: community enhancement feature request not on Twilio's roadmap

Comments

@janousek
Copy link

janousek commented Mar 5, 2020

You must specify a culture when calling the ToString method on a numeric type. There are different decimal separators in different countries and when you do not specify culture, national culture is used. This results in unexpceted format of request.
The main problem for me is serialization of maxPrice:

p.Add(new KeyValuePair<string, string>("MaxPrice", MaxPrice.Value.ToString()));

In Czech culture (cs-CZ) the nember is serialized as: "0,58" and not like "0.58" as expected.

@childish-sambino childish-sambino added code-generation issue deals with generated code status: help wanted requesting help from the community type: community enhancement feature request not on Twilio's roadmap labels Mar 5, 2020
@childish-sambino
Copy link
Contributor

This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-generation issue deals with generated code status: help wanted requesting help from the community type: community enhancement feature request not on Twilio's roadmap
Projects
None yet
Development

No branches or pull requests

2 participants