I need to update a Google sheet each night on a schedule using a CSV file generated by our school management system. Unfortunately, I have no control over the format of the CSV.
There is one student called Esmé in the file, and when I run
gam user simonlaycock update drivefile xxxxxxxxxxxxxx csvsheet id:0 localfile summary.csv
the e acute is causing the following error:
ERROR: File: summary.csv, 'utf-8' codec can't decode byte 0xe9 in position 61004: invalid continuation byte
It works fine if I change her name to "Esme". I need this to run unattended, so I need a way around the problem...
The second issue is that the file gets saved on a network share, and I haven't had any success pointing at it e.g.
gam user simonlaycock update drivefile xxxxxxxxxxxxxx csvsheet id:0 localfile \\someserver\Staff2\Admin Drive\SIMS Dashboard Data\summary.csv
I've tried using quotes around the path, but no joy.
Any ideas on either problem?