Questions related to the use of double-quotes in different programming languages.
Questions tagged [double-quotes]
1212 questions
9
votes
2 answers
Why F# string can't end with double quote in the triple-quoted?
I'm a C# developer who try to learn F#.
As far as I know, F# 2.0 had two kind of syntaxes for strings: normal strings, and verbatim strings (like C#). With F# 3.0 version there is a feature called tripled-quoted strings.
As far as I see, with this…

Soner Gönül
- 97,193
- 102
- 206
- 364
8
votes
4 answers
Why is a variable name followed by an underscore not evaluated correctly during string interpolation in Perl?
Why is a variable name followed by an underscore not evaluated correctly during string interpolation in Perl?
my $i = 3;
print "i = $i\n"; # works, prints "i = 3"
print "_i = _$i\n"; # works, prints "_i = _3"
print "i_ = $i_\n"; # FAILS, prints "i_…

Shahriar
- 280
- 2
- 9
8
votes
4 answers
how to check if a character is equal to double quote in java
I want to check the value of a char to see if it is double quote or not in Java. How can I do it?

Mehdi Ijadnazar
- 4,532
- 4
- 35
- 35
8
votes
1 answer
Git tags with quote names on Windows
We've got a repo on GitHub with several tags with quotes " in the name. Occasionally, some Windows hosts will fail to fetch with the error below. I don't know why some Windows hosts fail to fetch and others don't, if we solved that that would be…

Dlongnecker
- 3,008
- 3
- 25
- 40
8
votes
1 answer
Passing arguments which include double quotes to subprocess using Python
I'm looking for a way to pass an argument which contains double quotes to python's subprocess module, without the double quotes being escaped.
I've seen this question asked a few different times when the quotes are surrounding the arg, but the…

BetterOffEd
- 81
- 1
- 1
- 4
8
votes
1 answer
mysql double-quoted table names
I'm doing a mysql query like:
Select * from "User";
and it returns:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"User"' at line 1
The error has something…

Mohamed Wagdy Khorshid
- 547
- 4
- 15
- 32
8
votes
3 answers
Quotation marks in VBA
In my current VBA code, I have a query in which I am using Chr(34) to put quotation marks between some of my variables.
I was wondering what alternatives exist to this. This is a simple question, i know, but I haven't had any success with repeating…

Paolo Bernasconi
- 2,010
- 11
- 35
- 54
7
votes
5 answers
perl encapsulate single variable in double quotes
In Perl, is there any reason to encapsulate a single variable in double quotes (no concatenation) ?
I often find this in the source of the program I am working on (writen 10 years ago by people that don't work here anymore):
my $sql_host =…

Radu Maris
- 5,648
- 4
- 39
- 54
7
votes
1 answer
Ruby on Rails, convert projectwide single quotes to double quotes
I wonder if anyone has come up with a shortcut to correctly convert ALL single quotes to double quotes in a new rails project. Thank you in advance. I would do that at the end of generating new project with a template.rb

webgen
- 183
- 1
- 6
7
votes
3 answers
pandas data with double quote
I am trying to read a large dataset in .csv format which is update automatically using the pandas library.
The problem is that in my data, the first row is a string without double quotation marks, and the other colums are strings with double…

Gerrit
- 73
- 1
- 1
- 5
7
votes
5 answers
CSV parsing with Commons CSV - Quotes within quotes causing IOException
I am using Commons CSV to parse CSV content relating to TV shows. One of the shows has a show name which includes double quotes;
116,6,2,29 Sep 10,""JJ" (60 min)","http://www.tvmaze.com/episodes/4855/criminal-minds-6x02-jj"
The showname is "JJ" (60…

mhollander38
- 775
- 3
- 11
- 22
7
votes
2 answers
fgetcsv() wrongly adds double-quotes to first element of first line
I have a very curious issue whith fgtcsv(). Look at this code
$csv_check = fopen(CSV_DIR.$this->db_table.".csv","r");
$data = fgetcsv($csv_check, 1000, $this->fields_terminated_by);
fclose($csv_check);
A print_r($data) outputs the…

Dong3000
- 566
- 2
- 7
- 24
7
votes
3 answers
RubyMine: key press to "convert to single quoted"?
Is there a keyboard shortcut to toggle between single quotes and double quotes in a Ruby code? Or a key I can set up to accept the Inspection Hint?
Thanks, M.

Martin Cleaver
- 909
- 8
- 21
7
votes
3 answers
Java String use quotes without escape character
I know that it is possible to write double quotes in Java strings by putting \ symbol before them. But if double quotes are used a lot in a string, is there a way to mark the string once, so there won't be a need to write the \ symbol before each?…

Victor2748
- 4,149
- 13
- 52
- 89
7
votes
2 answers
Netbeans 7.4 double quote marks autocomple on new line
In Netbeans 7.4 when you hit Return within a set of double quotes it auto-completes using concatenation syntax. i.e.
How can I switch this off?

gawpertron
- 1,867
- 3
- 21
- 37