Questions tagged [apostrophe]

The single-quote character (')

499 questions
4
votes
4 answers

Replacing apostrophe in asp.net to prevent SQL error

I have a web-form with a Name field which I want to be able to accept single apostrophes, such as in the name O'Leary, but when trying to push this record to the SQL 2005 server, I get an error. My question is not this. It's that when I attempt to…
Jim
  • 43
  • 1
  • 3
4
votes
1 answer

How to deal with quotes and apostrophes for string comparison in MySQL so they match (collation)

MySQL uses collations to do string comparison because some characters should match Exemple: SELECT 'é' = 'e' COLLATE utf8_unicode_ci; SELECT 'oe' = 'œ' COLLATE utf8_unicode_ci; both return true Now, how can I do the same with quotes (') vs…
cslavoie
  • 216
  • 1
  • 6
4
votes
2 answers

Java replace characters with uppercase around (before and after) specific character

I have this kind of input word w'ord wo'rd I need to convert to uppercase both characters at the starts of the word and right after the ' character (which can exists multiple times). The output I need (using the previous example) is word W'Ord…
Deviling Master
  • 3,033
  • 5
  • 34
  • 59
4
votes
1 answer

How to display apostrophe ' in faces message added via OmniFaces Messages#add

I am using p:messages for display error no UI in primefaces XHTML page. I want to display String like Employee's. When I am trying to use OmniFaces Messages utility, it is not showing. For more detail look code below. XHTML:
ankush yadav
  • 422
  • 3
  • 13
4
votes
3 answers

PHP doesn't recognize filename with apostrophe in it

Currently I am trying to check with PHP if a file exists. The current file I am trying to check if it exists has an apostrophe in it, the file is called:13067-AP-03 A - Situation projetée.pdf. The code I use to check if the file exist is: $filename…
Quartermain
  • 163
  • 3
  • 17
4
votes
2 answers

Match a word using regex that also handles apostrophes

I have to separate a line of text into words, and am confused on what regex to use. I have looked everywhere for a regex that matches a word and found ones similar to this post but want it in java (java doesn't handle \ in regular strings). Regex…
Richard Duerr
  • 566
  • 8
  • 24
4
votes
3 answers

Apostrophe in app name

I intend on releasing an app in the Apple store that contains an apostrophe in the title. I notice that XCode already has issues in building the code when the 'Target' name contains an apostrophe. I've managed to get around this problem (for now),…
CaptainProg
  • 5,610
  • 23
  • 71
  • 116
4
votes
1 answer

Regex match of apostrophe in autohotkey script

I have an autohotkey script which looks up a word in a bilingual dictionary when I double click any word on a webpage. If I click on something like "l'homme" the l' is copied into the clipboard as well as the homme. I want the autohotkey script to…
keith.uk
  • 75
  • 4
3
votes
3 answers

HTML forms, php and apostrophes

Doing a uni assignment with HTML, XML and php 5.3 (no SQL). Building a review website. I have a textarea in which the user can place their comments. If the user enters an apostrophe, eg World's Best Uni!, when I echo $_REQUEST['reviewtext'] I get…
srodden
  • 57
  • 1
  • 4
3
votes
1 answer

How to write an xpath to select a node whose text contains special characters such as apostorophe?

How to write an xpath to select a node whose text contains special characters such as ' which is kind of invalid inxpath? General…
The Light
  • 26,341
  • 62
  • 176
  • 258
3
votes
3 answers

Apostrophes and SQL Server FT search

I have setup FT search in SQL Server 2005 but I cant seem to find a way to match "Lias" keyword to a record with "Lia's". What I basically want is to allow people to search without the apostrophe. I have been on and off this problem for quite some…
vintana
  • 2,893
  • 2
  • 18
  • 12
3
votes
2 answers

ASP.NET Chart: apostrophe ' is replaced with ' in chart's Title

When I display a chart and its title has an apostrophe, the title displays the ' as '. How can I prevent this from happening?
user776676
  • 4,265
  • 13
  • 58
  • 77
3
votes
4 answers

Why is HTML encoding apostrophes in Rails 2 giving an unexpected result?

I'm using h to HTML encode some text in Rails 2, but I'm having problems with apostrophes. To be more exact, I'm finding that my apostrophes end up as ' which is obviously not want I want to display. Anyone have any ideas why this is happening?…
tiswas
  • 2,041
  • 7
  • 31
  • 43
3
votes
1 answer

Correct type of apostrophe to use in HTML

If I write a paragraph using my keyboard straight into a text editor for a HTML document and one of the words has an apostrophe then the apostrophe will be written exactly like this: Here's an example of some text. However if copying from Word, the…
Cameron
  • 27,963
  • 100
  • 281
  • 483
3
votes
1 answer

How to make Apostrophe/Node.js content pages crawlable?

Obviously Apostrophe CMS code is javascript-based, so I'm wondering to what extent Apostrophe pages are 'properly' indexable (i.e. "Ready for JavaScript Crawling & Indexing"?). The reason I ask this is because of this article, in which Moz tested a…
Steve
  • 614
  • 5
  • 16
1 2
3
33 34