I think this is the root of the problem:
>>> import locale >>> locale.getlocale() (None, None) >>> locale.setlocale(locale.LC_ALL, '') 'nb_NO.UTF-8' >>> locale.getlocale() ('nb_NO', 'UTF8') >>> locale.localeconv()['decimal_point'] ',' >>> locale.localeconv()['thousands_sep'] '\xc2\xa0'
It probably should have returned '.', I guess.
Regards, Georg
I think this is the root of the problem:
>>> import locale setlocale( locale. LC_ALL, '') localeconv( )['decimal_ point'] localeconv( )['thousands_ sep']
>>> locale.getlocale()
(None, None)
>>> locale.
'nb_NO.UTF-8'
>>> locale.getlocale()
('nb_NO', 'UTF8')
>>> locale.
','
>>> locale.
'\xc2\xa0'
It probably should have returned '.', I guess.
Regards,
Georg