pase localization

General discussion on Zend Server for IBM System i
Post Reply
elen1764
Posts: 1
Joined: Tue Jul 26, 2016 1:56 pm

pase localization

Post by elen1764 » Tue Jul 26, 2016 2:10 pm

Hello,
I'm trying to run a php in pase and i've got problems with localization stuff.
The default value of locale parameters is it_IT.
My script read a db2 table, executes some algebraic operations and then write another db2 table.
If I write in my log file the decimal value read from the db it is represented, e.g., like 10.5
If I sum 2 to it and I write it into the log file it is represented like 12,5
I turn locale parameters to en_US using LANG=/QSYS.LIB/en_US.LOCALE in my qsh session, but nothing changes.
I insert setlocale(LC_ALL, 'en_US') at the top of my script and nothing changes.
Any help?
thanks!!!

Post Reply