Questions tagged [apostrophe]

The single-quote character (')

499 questions
79
votes
16 answers

Is it correct to use single quotes for HTML attributes?

Recently I've been seeing a lot of this: Ross's Widget Is it valid to use single quotes in HTML? As I've highlighted…
Ross
  • 46,186
  • 39
  • 120
  • 173
55
votes
6 answers

HTML Best Practices: Should I use ’ or the special keyboard shortcut?

I know that ’ will produce an apostrophe in an HTML document. I also know that option shift right bracket on a Mac will simply produce a ’ character. Are there best practices for writing code, e.g., should I write The User’s…
user2238214
  • 575
  • 1
  • 4
  • 4
48
votes
1 answer

What is ' and why does Google search replace it with apostrophe?

In what language does and - hash - three - nine - semicolon (') represent the apostrophe? I had some website data extracted in JSON format where some of the user comments had apostrophe which were replaced by '. So, what representation it…
Rajesh Surana
  • 883
  • 1
  • 10
  • 15
46
votes
2 answers

Clojure - difference between ' (apostrophe) and ` (backtick)

I'm fairly new to Clojure and I'm not sure I completely understand the difference between apostrophe and backtick in Clojure. (def x 5) ;; Question 1 (+ x x) ;; evaluates to 10 '(+ x x) ;; evaluates to (+ x x) `(+ x x) ;; evaluates to…
wmock
  • 5,382
  • 4
  • 40
  • 62
34
votes
9 answers

How do I search for names with apostrophe in SQL Server?

SELECT * FROM Header WHERE (userID LIKE [%'%])
Ontonomo
  • 527
  • 1
  • 8
  • 12
29
votes
4 answers

Excel escaping quotes or apostrophes in cell values

I get a lot of database information from clients in excel spreadsheets. I frequently need to insert/update this data back into the database. I often use excel to generate the insert and update statements via concatenating a bunch of cells together.…
Mir
  • 2,429
  • 1
  • 29
  • 34
25
votes
1 answer

Difference (if there is any) between ` and ' in javascript

Recently ran into some JS code that uses ` and '. I can't figure out if there is a different use for each apostrophe. Is there any?
roscioli
  • 1,200
  • 3
  • 15
  • 33
17
votes
3 answers

Adding Apostrophe in a string - Matlab

I want to put an apostrophe in a string to denote the possessive but it ends the string, how can I put one in.
16
votes
6 answers

How to fix syntax error when printing a string with an apostrophe in it?

When I am trying to print a string like the one below which uses an apostrophe in the sentence, print(''I am jack's raging bile duct'') I get a syntax error. How to fix this?
user1940012
  • 181
  • 1
  • 1
  • 4
15
votes
1 answer

apostrophe turning into \x92

mycorpus.txt Human where's machine interface for lab abc computer applications A where's survey of user opinion of computer system response time stopwords.txt let's ain't there's The following code corpus = set() for line in…
Pankaj Singhal
  • 15,283
  • 9
  • 47
  • 86
14
votes
4 answers

Can't use apostrophe in StringFormat of a XAML binding?

I'm trying use StringFormat to insert apostrophies (apostrophe's?) around a value that is bound to a TextBlock: However, I get a compile error: Names and Values in…
Zodman
  • 3,178
  • 2
  • 32
  • 38
12
votes
7 answers

How do I escape an apostrophe in my XPath text query with Perl and Selenium?

I have an XPath query which needs to match some text in a span attribute, as follows: my $perl_query = qq(span[text\(\)='It's a problem']); $sel->click_ok($perl_query); Where the text has no apostrophe there is no problem. I've tried the following…
CColin
  • 149
  • 1
  • 1
  • 5
12
votes
2 answers

Clojure when is an apostrophe needed before vector

from "The Joy of Clojure" book: first example: (def fifth (comp first rest rest rest rest)) (fifth [1 2 3 4 5]) ;=> e second example: (defn fnth [n] (apply comp (cons first (take (dec n) (repeat rest))))) ((fnth 5) '[a b c d e]) ;=>…
Alonzorz
  • 2,113
  • 4
  • 18
  • 21
11
votes
8 answers

Mysql + php with special characters like '(Apostrophe) and " (Quotation mark)

I have been struggling with a small problem for a while. It's been there for years but it's just been an irritating problem and not a serious one, and I have just worked around it. But now I want to find out if anyone can help me. I have done some…
11
votes
3 answers

PHP Array access without quotes

I knocked to a phenomenon in an existing php source, with field access without apostrophe like this: $_GET[test]. I got unsure, also don't know, that this is a possible way, so I wrote a short example for testing: echo "Array Test, fields without…
Peter
  • 113
  • 1
  • 4
1
2 3
33 34