Open wu-lee opened 2 years ago
I'm seeing mojibake text like this in incoming CSV data: "Alliance Coopératives Cameroun", which propagates into the map dialogs. This not the only case. Something upstream is mangling the encoding.
WHere is the best place to catch that?
Ideally they give us non-mangled data, so we don't have to, but as you say this might not happen very quickly. We might demangle it ourselves, otherwise, but it's not as simple as you might think.
Searching, I see there's a mojibake decoder here, which can helpfully identify how to decode the case I spotted.
However, some experiments show it's not simply a matter of reading the file with the right encoding - there are actually extra bytes injected, so I get mojibake in any case. It got very fiddly and I gave up for the moment.
Is this being addressed in new system? @wu-lee
Nope.
Currently data is trusted throughout Mykomaps and the sausage factory. Mykomaps should have some protection in any case, but maybe the best place to gatekeep this is when data comes in from 3rd party sources?
I'm seeing mojibake text like this in incoming CSV data: "Alliance Coopératives Cameroun", which propagates into the map dialogs. This not the only case. Something upstream is mangling the encoding.