We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
setlocale(LC_ALL, 'ru_RU.UTF-8')
This behaviour caused by converting double values to string type by using (string) operator:
public function visitDouble($data, array $type, Context $context) { ... return $this->document->createTextNode((string) $data); ...
Easiest way to convert double to machine-readable string is using json_encode: json_encode((double)$data)
json_encode((double)$data)
The text was updated successfully, but these errors were encountered:
Non-locale aware encoding of doubles, closes schmittjoh#1041
e67aa0f
Fix: #1042
Sorry, something went wrong.
a7c496c
84883f7
Merge pull request #1042 from Grundik/bugfix-1041
4826c96
Non-locale aware encoding of doubles, closes #1041
No branches or pull requests
Steps required to reproduce the problem
setlocale(LC_ALL, 'ru_RU.UTF-8')
Expected Result
Actual Result
This behaviour caused by converting double values to string type by using (string) operator:
Easiest way to convert double to machine-readable string is using json_encode:
json_encode((double)$data)
The text was updated successfully, but these errors were encountered: