Title: Returned range name duplicates inner single quote · Issue #2702 · googleapis/google-api-python-client · GitHub
Open Graph Title: Returned range name duplicates inner single quote · Issue #2702 · googleapis/google-api-python-client
X Title: Returned range name duplicates inner single quote · Issue #2702 · googleapis/google-api-python-client
Description: If you request data for a sheet with a inner single quote, like Jon's Data in the example, the returned range name will duplicate the inner quotes: 'Jon''s Data'!A1:Z1000. Using this range name will then lead to errors like Unable to par...
Open Graph Description: If you request data for a sheet with a inner single quote, like Jon's Data in the example, the returned range name will duplicate the inner quotes: 'Jon''s Data'!A1:Z1000. Using this range name wil...
X Description: If you request data for a sheet with a inner single quote, like Jon's Data in the example, the returned range name will duplicate the inner quotes: 'Jon''s Data'!A1:Z1000. Using...
Opengraph URL: https://github.com/googleapis/google-api-python-client/issues/2702
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Returned range name duplicates inner single quote","articleBody":"If you request data for a sheet with a inner single quote, like `Jon's Data` in the [example](https://developers.google.com/workspace/sheets/api/guides/concepts), the returned range name will duplicate the inner quotes: `'Jon''s Data'!A1:Z1000`.\n\nUsing this range name will then lead to errors like `Unable to parse range: Jon''s Data!A1:Z1000` because the returned range name does not exist.\n\n#### Environment details\n\n - OS type and version: `macOS Tahoe 26.2`\n - Python version: `Python 3.10.15`\n - pip version: `pip 25.2`\n - `google-api-python-client` version: `google-api-python-client-2.188.0`\n\n#### Steps to reproduce\n\n 1. use any valid credentials, the sheet is public\n 2. run the code below, you should see the commented result printed\n```python\nSPREADSHEET_ID = '1uK8QrcKrc_wierOMaIXxRKeE_fjt_8FfzpvrnuM1BhM'\nRANGE_NAME = \"'Jon's Data'\"\nresult = service.spreadsheets().values().get(spreadsheetId=SPREADSHEET_ID, range=RANGE_NAME).execute()\nprint(result.get('range'))\n# 'Jon''s Data'!A1:Z1000\n```","author":{"url":"https://github.com/filipesilva","@type":"Person","name":"filipesilva"},"datePublished":"2026-01-16T12:16:02Z","url":"https://github.com/googleapis/google-api-python-client/issues/2702"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a2fe9cce-ef30-bb46-54bc-50b63a49a7e6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD60:22B103:13731A:1A8182:6B008197 |
| html-safe-nonce | b4bf8082b86fec3791c5eee134ea74d73513caa427ad91e238ec4636a193aa63 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDYwOjIyQjEwMzoxMzczMUE6MUE4MTgyOjZCMDA4MTk3IiwidmlzaXRvcl9pZCI6IjI4OTIzOTE5Mjc1MDI5MzM5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9f78f8efd2d2cb98f9752484cfd60787c0cb429edcea4ea0fca9d411f067a00d |
| hovercard-subject-tag | issue:3821798958 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-api-python-client/2702/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bfbaaaa701908cbc47a54ddd2de401b8d5f6c8e0a3b59c1182c9222f644dbbab/googleapis/google-api-python-client/issues/2702 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bfbaaaa701908cbc47a54ddd2de401b8d5f6c8e0a3b59c1182c9222f644dbbab/googleapis/google-api-python-client/issues/2702 |
| og:image:alt | If you request data for a sheet with a inner single quote, like Jon's Data in the example, the returned range name will duplicate the inner quotes: 'Jon''s Data'!A1:Z1000. Using this range name wil... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | filipesilva |
| hostname | github.com |
| expected-hostname | github.com |
| None | 82c186f13e104004ab7bdb779f3195e59dd38bfde531aaa74b76470fc2462b83 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-api-python-client git https://github.com/googleapis/google-api-python-client.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 15749269 |
| octolytics-dimension-repository_nwo | googleapis/google-api-python-client |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 15749269 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-api-python-client |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d1bc2aa1939001689f5ce935982c10a6138f745c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width