Tech Support Forum banner

Curly quote marks? [MOVED FROM ARTICLES]

1078 Views 3 Replies 4 Participants Last post by  niemiro

I'm a complete newbie here...

Can anyone tell me whether it's OK to enter code in VB 2010 with curly double quote marks?

Or do they have to be straight ones like this: "
Not open for further replies.
1 - 4 of 4 Posts
Re: Curly quote marks?

Hi and welcome to TSF. :wave:
I'm afraid I don't know the answer to your question but I'm sure someone in Programming will. I don't know how you got to the New Articles forum as it's not on the main menu but I'll move your post to the correct one.
Hello, welcome to TSF!

To answer your question, you can use both. From what I know, they are the same thing, just appear different. I could be wrong on this, but I'm pretty sure I'm not.

Curly quotes are really 'Smart Quotes'. Microsoft Office Word introduced smart quotes a few years back (no idea when!) and there is an option under proofing to enable or disable smart quotes.

What happens is that when the straight quote character is inserted, it is automatically changed to one of two smart quote characters, based on the results of an algorithm.

I can only imagine that smart quotes must have two new positions in the Unicode character set, and so must be considered very different.

Because this is a Word and similar thing, Visual Studio will not auto-change them to smart quotes. However, there is always the possibility of copying in a smart quote.

I see no reason why Visual Studio, if you are using that, or the VB compiler if you aren't, should get stressed by it. So I am going to say that it is fine.

I would also imagine that they would not be considered escape characters, and I imagine that you could Console.WriteLine() a smart quote without a preceeding backslash.

I am just guessing with all of this. Feel free to correct me!


P.S. Actually, it is also possible that some programs, when copying data, will convert smart quotes to normal quotes. Again, more speculation!
See less See more
1 - 4 of 4 Posts
Not open for further replies.