views:

38

answers:

2

I know that strings surrounded by single quotes can contain double quotes and vice versa, but can a string contain both? For example, the string:

How do you say, "Where's the bathroom?" in Spanish?
A: 

A backslash character should work to escape an embeded quote or apostrophe, e.g. \"

Michael Goldshteyn
+3  A: 

It's been a very long time and a quick google search wasn't helpful. Have you tried these?

"How do you say, \"Where's the bathroom?\" in Spanish?"

"How do you say, ""Where's the bathroom?"" in Spanish?"
Tergiver