For example, would I write:
"What do you mean by, 'It's not over yet?'"
Or
"What do you mean by, 'It's not over yet'?"
The thing the speaker is quoting is not a question, so where would the question mark go? I use American punctuation.
For example, would I write:
"What do you mean by, 'It's not over yet?'"
Or
"What do you mean by, 'It's not over yet'?"
The thing the speaker is quoting is not a question, so where would the question mark go? I use American punctuation.
From How to Punctuate Quotations - a practical handout
Rule #5
Question marks should go inside of the quotation marks if the quote is a question. If the quote is not a question, but the sentence is, the question mark should be outside the quotation marks.
Examples:
1: The caterpillar answered, “Who are you?”
2: Why did you say that I was “ugly and annoying”?
So I guess we could extend those examples...
1a: "I think his exact words were 'The caterpillar answered, "Who are you?"'" 1
1b: "Do you think his exact words were 'The caterpillar answered, "Who are you?"'?"
Things might get even messier using British punctuation (where the question mark goes after "the" closing quote - but good luck finding the relevant quote mark! :)
1 From a comment by Peter Shor under the original (closed) question on this issue:
If you have inner inner quotes, you go back to double quotes. If you have more than three layers of quotes, you keep alternating.