Questions tagged [apostrophe]

The single-quote character (')

499 questions
2
votes
0 answers

SQL Server full text search - why apostrophe filters results despite wildcard?

I am experiencing issue with the full text search in SQL Server. On my local server (SQL Server 2008) the following query returns the expected row number : 1305 select count(*) from EditionSearch where contains(title, '"*actualité*"') Most of the…
Ceratias
  • 31
  • 3
2
votes
2 answers

How to prevent ’ character being entered into a textbox?

I am trying to prevent the ’ character from being entered into a textbox. The problem is if you copy and paste the ’ character it becomes a right single quotation, which causes an error in the sql when trying to save the textbox to the database.…
user123456789
  • 1,914
  • 7
  • 44
  • 100
2
votes
2 answers

Remove special apostrophe in R

I am doing some text mining and I would like to remove the apostrophe " from my text (delete it). I tried to use gsub as follow but it does not work text <- "\"branch" removeSpecialChars <- function(x){ result <- gsub('"',x) …
richpiana
  • 411
  • 1
  • 7
  • 16
2
votes
2 answers

Problem converting ISO8859-1 to UTF-8 in PHP

I am attempting to convert a ISO8859-1 string taken from a MySQL database and convert it to UTF-8 using php. However, when I use the utf8_encode function it removes almost all of the apostrophes from the string (the exceptions seem to be within…
user445359
  • 25
  • 1
  • 3
2
votes
3 answers

Escaping Apostrophes in Javascript Generated From PHP

I am trying to have a textfield with an initial value, where if you click on it, the text disappears, and if you click out before anything has been entered the initial value returns much like the search box on Yahoo answers and many other sites. …
jkeesh
  • 3,289
  • 3
  • 29
  • 42
2
votes
2 answers

Lucene: dealing with apostrophe

I would like to deal with apostrophes in Lucene. Let's give an example. I have the following sentence : "L'arbre est vert". I would like to know how can I create a query on the word "arbre" 'without the apostrophe). With the StandardAnalyzer I need…
El pupi
  • 458
  • 1
  • 3
  • 13
2
votes
2 answers

preg_replace between something without removing the something

What i'm gonna do is: function replace_between_something($betweenWhat,$replace_thing,$target){ return preg_replace("/".$betweenWhat."(.*?)".$betweenWhat."/",$replace_thing,$target); } $string="Hi, *my* name is 'Soul' and she is 'Maggie'.…
Syamsoul Azrien
  • 2,534
  • 4
  • 32
  • 55
2
votes
1 answer

Twig and Apostrophes

I recently implemented Twig on a PHP site. The site has a MySQL database in which each entry is a report. After implementing Twig apostrophes aren't being displayed properly. An example of this problem is below: Evaluating the State�s Workers�…
indigochild
  • 350
  • 1
  • 5
  • 21
2
votes
2 answers

Echo in Bash: Escape Apostrophes?

I'm trying to use echo in bash inside of quotes. When I try from a command line, it works fine. For example: echo "I'm testing the apostrophe functionality." yields I'm testing the apostrophe functionality. Yet, when I write this in a script, it…
Eric Reed
  • 377
  • 1
  • 6
  • 21
2
votes
1 answer

Saving file with apostrophe in the name (Python 3.4)

Trying to save image files in batches. Works nicely, but the list of names for each file sometimes includes apostrophes, and everything stops. The offending script is: pic.save(r"C:\Python34\Scripts\{!s}.jpg".format(name)) The apostrophes in…
2
votes
2 answers

Appium xpath escaping apostrophes

I have the code below in my appium script: public boolean isErrorDisplayedUnrecognisedLoginCredentials() { return appDriver.isElementExist(By.xpath("//UIAStaticText[@name='We don't recognize this user ID or password']")); } The test…
Charlie S
  • 4,366
  • 6
  • 59
  • 97
2
votes
1 answer

Replace Apostrophe in Ajax jQuery form

I have an Ajax form that I want to allow the users to include apostrophes. function print_and_update(id,type) { $.ajax( { url: "index.php", cache: false, type : "GET", data: { "q1" : $('#q1').val(), "q2" :…
N13Design
  • 85
  • 2
  • 2
  • 12
2
votes
3 answers

Apostrophe converting to question mark in textview

I am parsing some external XML into an object and displaying this inside a textview. Apostrophe's/single quotes are being converted to these silly question mark symbols. Nothing i've found is working - i've tried using replaceall and escaping it…
makapaka
  • 169
  • 5
  • 16
2
votes
1 answer

XStream apostrophe Issue in converting Java Object to XML

I am using com.thoughtworks.xstream.XStream to Generate xml String. I parse Object to xstream.toXML method and I get the xml output according to the way I need.
TV Nath
  • 499
  • 5
  • 12
  • 35
2
votes
2 answers

Fuzzy_like_this query in elastic search not showing string with apostrophe

I have an uissue in my fuzzy_like_this query If my string contains any Apostrophe then its not searching those values contains in db. sample citrus's => search string but results not selecting the apostrophe values instead getting like citrus, so…