Questions tagged [apostrophe]

The single-quote character (')

475 questions
70
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
  • 43,016
  • 36
  • 114
  • 168
48
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
  • 505
  • 1
  • 4
  • 4
41
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,152
  • 4
  • 31
  • 58
33
votes
9 answers

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

SELECT * FROM Header WHERE (userID LIKE [%'%])
Ontonomo
  • 517
  • 1
  • 8
  • 12
32
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
  • 657
  • 1
  • 9
  • 15
23
votes
3 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,101
  • 1
  • 26
  • 32
20
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,040
  • 2
  • 12
  • 33
16
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.
15
votes
5 answers

Not able to print statements with 'Apostrophe' in it in Python. Invalid syntax error

Eg. when iam trying to write something like below which uses an apostrophe in the sentence, print(''I am jack's raging bile duct'') I get invalid syntax error. How to fix this?
user1940012
  • 163
  • 1
  • 1
  • 4
13
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
  • 2,001
  • 1
  • 24
  • 35
13
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
  • 12,388
  • 7
  • 37
  • 74
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
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
  • 139
  • 1
  • 1
  • 5
11
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
  • 1,764
  • 2
  • 15
  • 21
10
votes
4 answers

How to get Excel to ignore apostrophe in beginning of cell

I'm writing a tool that syncs a simple database with Excel sheets. Each item in a table in the database corresponds to one row in the worksheet. I read the Excel sheet into the tool using C# and the Excel interop com interface, then compared the…
Srekel
  • 1,929
  • 3
  • 19
  • 25
1
2 3
31 32