Questions related to the use of double-quotes in different programming languages.
Questions tagged [double-quotes]
1212 questions
13
votes
7 answers
How to read \" double-quote escaped values with read.table in R
I am having trouble to read a file containing lines like the one below in R.
"_:b5507F4C7x59005","Fabiana D\"atri"
Any idea? How can I make read.table understand that \" is the escape of quote?
Cheers,
Alexandre

Alexandre Rademaker
- 2,683
- 2
- 19
- 21
13
votes
3 answers
How to add quotes around each word in a string in R?
I have a string:
words<-"Monday, Tuesday, Wednesday, Thursday,Friday"
and I only need add quotes to each word:
"Monday", "Tuesday", "Wednesday", "Thursday","Friday"
getting a length of five string.
I know there are many post about this topic, but…

Tomás Navarro
- 160
- 1
- 1
- 7
13
votes
3 answers
Does Java have the '@' character to escape string quotes?
My string has double quotes in it, in C# I would do:
string blah = @"this is my ""text";
how would I do that in Java?

mrblah
- 99,669
- 140
- 310
- 420
12
votes
4 answers
How can I accommodate a string with both single and double quotes inside of it in JavaScript
I have an application, and it is fed some HTML. It then needs to put that HTML into a string. This HTML contains single and double quotes. Is it possible, in javascript, to declare a string with information inside of it, that does not use single or…

swickblade
- 4,506
- 5
- 21
- 24
11
votes
2 answers
C++: About null characters
There are two string variables, m and n:
#include
string m = "0100700\0"
cout << m.size() << endl; // it prints: 7
string n;
n += "0100700"
n += '\0';
cout << n.size() << endl; // it prints: 8
I supposed that both had 8 characters, but m…
user3764269
10
votes
5 answers
Json.NET: Deserilization with Double Quotes
I am trying to deserialize a json string received as a response from the service. The client is Windows Phone 7, in C#. I am using Json .NET - James Newton-King deserializor to directly convert the Json string to objects. But sometimes the Json…

franklins
- 3,710
- 6
- 41
- 56
10
votes
1 answer
from pandas dataframe save csv file without double quotes
To save a csv file from pandas dataframe I have tried following way:
res.to_csv('seq_test.fa',header= False, index= False, sep = '\t', quoting = csv.QUOTE_NONE)
and this gives me following error:need to escape, but no escapechar set
If I don't use…

KR12
- 131
- 1
- 1
- 8
10
votes
5 answers
Python how convert single quotes to double quotes to format as json string
I have a file where on each line I have text like this (representing cast of a film):
[{'cast_id': 23, 'character': "Roger 'Verbal' Kint", 'credit_id': '52fe4260c3a36847f8019af7', 'gender': 2, 'id': 1979, 'name': 'Kevin Spacey', 'order': 5,…

revy
- 3,945
- 7
- 40
- 85
10
votes
1 answer
double quotes escaping in golang exec
i need to run following command:
ffmpeg -i input.jpg -vf scale="'if(gt(a,4/3),320,-1)':'if(gt(a,4/3),-1,240)'" output_320x240_boxed.png
so i execute:
cmd = exec.Command("ffmpeg", "-i", "input.jpg", "-vf",…

Pavel K.
- 6,697
- 8
- 49
- 80
10
votes
4 answers
PHP - can't call for function inside double quotes
I have a PHP code:
class Test {
function someThing(){ return 1}
}
$test = new Test();
//why this isn't printing bla bla bla 1????
echo "bla bla bla $test->someThing()";
but it seems like I can't call function inside a double quoted…

The Best
- 351
- 2
- 3
- 10
10
votes
5 answers
CMD nested double quotes in argument
I am having problems with passing arguments to a batch function with nested double quotes.
Here is an example of a batch file:
@SET path_with_space="c:\test\filenamewith space.txt"
@CALL :FUNCTION blaat1, "blaat2 %path_with_space%"
@GOTO…

Davor Josipovic
- 5,296
- 1
- 39
- 57
9
votes
3 answers
how to avoid [Missing close double quote (") character.] error in google bigquery
I am receiving the error below when I want to upload a data to google big query from a csv file.
I have read many similar questions but still couldn't find a simple answer around how to fix this.
Any help is much appreciated.
Regards,
Error while…

Cagdas Kanar
- 713
- 4
- 13
- 23
9
votes
1 answer
Azure Data Factory CSV with double quotes
I have a pipeline that retrieves an FTP hosted CSV file. It is comma delimited with double quote identifiers. The issue exists where a string is encapsulated in double quotes, but the string itself contains double quotes.
string example: "Spring…

Dan Peter
- 101
- 1
- 2
- 8
9
votes
1 answer
Turn off automatic quote insertion in Visual Studio 2010
I am editing a huge number of legacy ASP pages that have been converted over to C#. One problem is that the HTML attributes need to be adjusted to correct some double quote problems.
My problem is that when I add a double quote VS dutifully inserts…

Ukko
- 2,236
- 2
- 21
- 33