Skip to content

Quote prefix with a character that Excel refuses unquoted - #72

Open
gthb wants to merge 1 commit into
borgar:masterfrom
gthb:quote-refused-characters
Open

gthb wants to merge 1 commit into
borgar:masterfrom
gthb:quote-refused-characters

Conversation

@gthb

@gthb gthb commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Fix needQuotes allowing every code point from U+00AF up to be unquoted.

E.g. 'My»Sheet'!RC[-2] gets translated to A1 as My»Sheet!A1, and Excel refuses that in formula entry and triggers repair if it sees it in a file.

Testing every code point in U+00AF-U+FFFF in Excel found 4,295 refused ones, interleaved with accepted ones in a way that doesn't seem to match any clear Unicode category or pattern. So they are added as a generated character class. Nothing assigned above U+FFFF is refused.

Fix `needQuotes` allowing every code point from U+00AF up to be unquoted.
E.g. `'My»Sheet'!RC[-2]` translated to A1 as `My»Sheet!A1`, and Excel refuses
that in formula entry and triggers repair if it sees it in a file.

Testing every code point in U+00AF-U+FFFF in Excel found 4,295 refused ones,
interleaved with accepted ones in a way that doesn't seem to match any clear
Unicode category or pattern. So they are added as a generated character class.
Nothing assigned above U+FFFF is refused.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant