Questions tagged [double-quotes]

Questions related to the use of double-quotes in different programming languages.

1212 questions
23
votes
5 answers

Java 13 Triple-quote Text Block *WITHOUT* newlines

The Java 13 multi line text block facility with """ delimiters is becoming well known. However I have a recurring need where I need entire paragraphs without the embedded newlines. In other words, the following code snippet: String paragraph = …
alife
  • 411
  • 4
  • 14
22
votes
2 answers

Escaping quotes and delimiters in CSV files with Excel

I try to import a CSV file in Excel, using ; as delimiters, but some columns contains ; and/or quotes. My problem is : I can use double quotes to ignore the delimiters for a specific string, but if there is a double quote inside the string, it…
Whin3
  • 675
  • 2
  • 9
  • 27
21
votes
4 answers

HTML:Use quotes within quotes within quotes

I'm stuck with this problem: alert('hi')""> The problem is that i cant use quotes within quotes within quotes. Any ideas?
flimmerkiste
  • 261
  • 1
  • 4
  • 7
20
votes
3 answers

How to let jackson generate json string using single quote or no quotes?

For example, I want to generate a json string for ng-style: Code But with jackson, the result is: Code It's not easy to read. So I want…
Freewind
  • 193,756
  • 157
  • 432
  • 708
19
votes
1 answer

Should I use single or double quotes in my .vimrc file?

What’s the difference between single (') and double (") quotes in Vim? Does it make speed differences? Is it better to use one or another when running functions inside it? Does it matter at all? I’m interested specifically in their use in the .vimrc…
greduan
  • 4,770
  • 6
  • 45
  • 73
17
votes
3 answers

Use backticks (`) or double quotes (") with Python and SQLite

I saw a similar question on Stack Overflow pertaining to Android, but I was wondering whether I should use backticks (`) or double quotes (") - using Python - to select table names or rowid or what have you. I tried single quotes - like this select…
dylnmc
  • 3,810
  • 4
  • 26
  • 42
16
votes
4 answers

Using python csv writer without quotations

I'm trying to write a list of strings like below to a file separated by the given delimiter. res = [u'123', u'hello world'] When I try splitting by TAB like below it gives me the correctly formatted string. writer = csv.writer(sys.stdout,…
samsamara
  • 4,630
  • 7
  • 36
  • 66
16
votes
2 answers

How can I read CSV with no quote_char in ruby?

I have a TSV file with no quote chars. Whenever a \t occurs in the data, it is always to separate columns, and never a part of a column value. Whenever a " occurs, it is always a part of a column value, and never to enclose column values. I would…
Popcorn
  • 5,188
  • 12
  • 54
  • 87
16
votes
1 answer

Is there a single rule to cope with single quotes in writing Spring Resource Boundle?

Spring's ResourceBundleMessageSource uses MessageFormat for replacing placeholders ({0}) inside messages. MessageFormat requires that single quotes (') are escaped using two single quotes ('') (see: MessageFormat Javadoc). However, by default…
16
votes
1 answer

Avoid quotation marks in column and row names when using write.table

I have the following data in a file called "data.txt": pid 1 2 4 15 18 20 1_at 100 200 89 189 299 788 2_at 8 78 33 89 90 99 3_xt 300 45 53 234 89 34 4_dx …
Layla
  • 5,234
  • 15
  • 51
  • 66
15
votes
4 answers

write csv file with double quotes for particular column not working

I'm trying to write a csv file using python csv writer. In which one of the column value is enclosed in "" [double quotes] e.g. : 'col1' 'col2' "test", when I open the file in wordpad, the word test is expected as "test" but actual result is…
Emma
  • 617
  • 2
  • 12
  • 29
15
votes
3 answers

Command line passing quotes within quotes

I've been searching for a solution to this but couldn't find one. Not sure if its possible. Can I pass into command-line execution that passes a in a bat file which has an input file as its arguments? So from the command-line it'll look like…
14
votes
7 answers

How to add double quotes in a string literal

Example code: Dim a As String a = 1234,5678,9123 I want to add literal double quotes to the variable a Expected Output: a = "1234,5678,9123" How do I format the string so when I print it, it has double quotes around it?
Gopal
  • 11,712
  • 52
  • 154
  • 229
14
votes
2 answers

How do you embed double-quotes an Elixir string?

I have a sting that has embedded ": tx how can i present such a string as a value in Elixir? for example: iex> s= "tx
Charles Okwuagwu
  • 10,538
  • 16
  • 87
  • 157
13
votes
4 answers

Adding a registry key in windows with quotes needed in the data using a batch script

Little Willis here. I am trying to using a batch script to edit an existing registry key that is used when double clicking a .jar file. The issue is that the data that I'm trying to enter contains quotes but I also need quotes for it to be…
Trey
  • 151
  • 1
  • 4
  • 12
1 2
3
80 81