boost::property_tree C++ JSON Writer, unwanted number formating

112 Views Asked by At

i am writing JSON files using boost::property_tree, my JSON contains large numbers, numbers are comma separated with EN_US.UTF-8 locale or separated by space with fr_FR.UTF-8 locale, i cannot get rid of the locale because i need to properly write utf-8 characters (éàè...).

In my case this behaviour is unwanted... someone has already encountered this problem ?

// on top of the main function
locale::global(locale("fr_FR.UTF-8"));
1

There are 1 best solutions below

0
Gregoire On

[RESOLVED] everything work like a charm with the locale C.UTF-8