Note that there are some explanatory texts on larger screens.

plurals
  1. POAccessing Google Spreadsheet data via header names
    primarykey
    data
    text
    <p>Google Spreadsheet API let's you add rows to spreadsheets using the header names, this process is described <a href="https://developers.google.com/google-apps/spreadsheets/#adding_a_list_row" rel="nofollow noreferrer">here</a></p> <p>The documentation however just gives an example of a simple case where the header text is made of of lowercase text (or text fitting the expression [a-z0-9]).</p> <p>My application requires me to be able to set arbitrary header names for text (i.e. those that do not necessarily fit the expression above). Through much experimentation, I've figured out that special characters and symbols (apart from period) are generally not supported. To access a spreadsheet that uses header rows containing special characters, the header text with the special characters removed has to be used.</p> <p>These transformations are not <a href="https://stackoverflow.com/a/11605522/1193813">documented</a> and I have found them mostly by trial and error.</p> <p>For instance, to access a column with the header <code>'Foo Bar'</code> via the API, the transformation of the header text to <code>'foobar'</code> is required. Similarly, <code>'Foo.Bar'</code> becomes <code>'foo.bar'</code>. </p> <p>Some special characters too have to be eliminated, however I keep getting corner cases in my code.</p> <p><strong>What transformations need to be made to the actual header text to access it via the API?</strong></p> <p>Also for this <a href="https://docs.google.com/spreadsheet/ccc?key=0ArksTvA-IDdcdEpRM0w1LUtERzV1cmY0X2tnMFRIUUE#gid=0" rel="nofollow noreferrer">spreadsheet</a> the transformation of the header text <code>'País'</code> to <code>'país'</code> doesn't seem to work. I suspect it has something to do with the non-ASCII character <code>'í'</code></p> <p>Any suggestions will be greatly appreciated.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload