dathere / datapusher-plus

A standalone web service that pushes data into the CKAN Datastore fast & reliably. It pushes real good!
GNU Affero General Public License v3.0
27 stars 21 forks source link

Does not handle locale #112

Open GordianDziwis opened 1 year ago

GordianDziwis commented 1 year ago

When pushing a file with german locale (Uses , instead of . for decimal point). Numbers are parsed as Text.

"Kennziffer","Einheit","12.06.1994","13.06.1999","13.06.2004","07.06.2009","25.05.2014","26.05.2019"
"Wahlbeteiligung","%","57,957","41,84699","39,0107","41,86174","42,6241","61,59743"
"GRÜNE","%","10,16194","4,992445","12,1425","13,09138","12,38852","20,18807"

image

I have set the locale to german in the datapusher-plus Dockerfile:

# Set Locale
RUN locale-gen de_DE.UTF-8 en_US.UTF-8
ENV LANG=de_DE.UTF-8
ENV LANGUAGE=de_DE.UTF-8
ENV LC_ALL=de_DE.UTF-8