asimlqt / php-google-spreadsheet-client

A PHP library for accessing and manipulating Google Spreadsheets
Other
543 stars 154 forks source link

How to insert record if Header has unicodes and special characters? #174

Open gauravjain028 opened 7 years ago

gauravjain028 commented 7 years ago

I have Special characters (/,space etc) and unicode (test from diff languages) in header of sheet. So how to prepare the insert array, so that it will work properly?

Like when I add 'Teléfono' as header, then inserting like ['teléfono' => 'Value'] works, when I add "Hoja de cálculo de Google" as header then I have to pass, ['hojadecálculodegoogle' => 'Value']

so is there any way to change my insert data array key, so that it will work in all cases.