routetopa / spod

The Social Platform for Open Data (SPOD) enables social interactions among citizens around open datasets coming from different dataset providers.
6 stars 0 forks source link

Controllet: step 2.. wrong labels #361

Closed vitsca closed 6 years ago

vitsca commented 6 years ago

In step 2, if the labels contains accented letters (like Città) they are not shown correctly (char encoding wrong) image

vitsca commented 6 years ago

on hetor, spod 2.8

rended commented 6 years ago

It is not a controller problem (which shows the character as it is in the dataset). The problem occurs when the dataset is loaded from CSV on CKAN: à becomes  as well as other "special" characters.

vitsca commented 6 years ago

ok... @donpir ?

donpir commented 6 years ago

It is a CKAN issue, and how the dataset has been uploaded (is the encoding and how CKAN interprets it).

vitsca commented 6 years ago

Ok... whom should I tag then ? :)

vitsca commented 6 years ago

CKAN plugin for character encoding? @lucavicidomini ?

lucavicidomini commented 6 years ago

Is this some sort of game? I tag @luigser!

Enough jokes... about CKAN, no such setting or plugin exists: it is duty of the uploader to set the right encoding on the file.

I did some test and asked @luigser to add the BOM at the beginning of the exported CSV. Now it's working and will be pushed on next release. Many thanks to @rended for his psychological support :)