Single Quote and Double Quotes are Different Characters

Share

For the computer, single quote (') and double quotes (") are different text characters.

There are situations where you are expected to type double quotes (") and typing a single quote (') won't be understood by a program. For example, when the search operator for exact phrase search in a search engine like Google requires double quotes, it typically won't work with a single quote.

It's also not possible to type two single quotes ('') to "make" double quotes. For the computer, that's two separate single quote characters, not a single double quotes character.

A black key, on it printed: a white single quote mark and a double quotes mark above it.
The single quote and double quotes key. Photo by Raysonho on Wikimedia (license: CC0 1.0).

In ASCII encoding, the bits for the single quote and double quotes characters are:

CharacterBits
'0100010
"0100111
Written by Noel Santos.

About the Author

I'm a self-taught Brazilian programmer graduated in IT from a FATEC. In a world of increasingly complex and essential computers, I decided to use my technical expertise in hardware, desktop applications, and web technologies to create an informative resource to make PC's easier to understand.

View Comments