Questions tagged [apostrophe]

The single-quote character (')

499 questions
2
votes
2 answers

Gsub apostrophe in data frame R

I need to remove all apostrophes from my data frame but as soon as I use.... textDataL <- gsub("'","",textDataL) The data frame gets ruined and the new data frame only contains values and NAs, when I am only looking to remove any apostrophes from…
Methexis
  • 2,739
  • 5
  • 24
  • 34
2
votes
2 answers

Apostrophe cause problems inserting query when using trim, stripslashes and htmlspecialchars

When I use text with an apostrophe, the query don't work. Example: This is Ben's party. This is the function I use: function text_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); …
user3328041
2
votes
2 answers

PHP PDO apostrophe

I have a problem to execute a Stored Procedure (FIREBIRD) from php: $sqlSP="select record_created,record_updated from SP_IMPORT_CRM_SELECTIE (11, 'AC015612','".$tester."'.............. When $tester containts this symbol ' I have a problem.. how…
user1756365
  • 135
  • 3
  • 12
2
votes
2 answers

Looking for robust HTML DOM approach to correctly extract text value of attribute that contains single apostrophe

As part of a migration task of data, I am extracting some data from some html, the values in alt and title attributes of the img html element using PHP. An example of the source html is: Andy
therobyouknow
  • 6,604
  • 13
  • 56
  • 73
2
votes
1 answer

Special apostrophe breaks JSON

[7671] => Sleaford Carre’s is an element in $result $result= json_encode($result); echo $result; //outputs "7671":null, Please note that this is not a normal apostrophe (single quote) or a back tick. I cant even find it on my keyboard. Data comes…
user138720
  • 141
  • 8
2
votes
3 answers

Can't catch apostrophe in if statement

I am creating a program that takes a text file, and a word. It reads a text file and compares the word to the current word being read. The way I built it was to ignore the "'s". For example if I am searching "NASA" and I came across the word…
IC2D
  • 471
  • 4
  • 11
  • 22
2
votes
3 answers

How to remove an apostrophe ( ' ) from couple of columns of a .CSV file?

I have a .CSV file with 7 fields, and the 3rd and 4th columns of the file has a number starting with an apostrophe ( ' ). Please see the example…
Dhruuv
  • 343
  • 10
  • 24
2
votes
1 answer

How to test for String with enter, apostrophe, quotation marks, many spaces etc when using robotframework

I need to put text like above to variable in robotframework: One two "three" 'four' five six *seven* Can anyone put that for me if possible? I tried to find anything helpful on Robot Framework extrended user guide, but i couldn't find anything.
user2678074
  • 768
  • 3
  • 9
  • 22
2
votes
2 answers

PHP: POST data + apostrophes

Imagine this: Form data contains an apostrophe Form gets submitted POST data gets serialized POST data is written to database Database data is retrieved Data cannot be unserialized The problem is found in the serialized data. I…
Joe
2
votes
1 answer

FPDF Converting Apostrophes into Weird Characters

I have this string passed from a JavaScript form: 4 H/M’s Which gets posted to an array, called '$out' and is keyed by "blurb". I use FPDF to output it, with MultiCell, like so: $pdf->MultiCell(190,4,$out["blurb"]); However, FPDF outputs this…
user1114864
  • 1,734
  • 6
  • 26
  • 37
2
votes
1 answer

How to Convert Microsoft Office "Smart" or "Curly" Quote/Apostrophe to ASCII or UTF-8 "Straight" Quote/Apostrophe in Ruby 1.8.7?

I'm using (and stuck with) the following version of Ruby: ruby 1.8.7 (2012-06-29 patchlevel 370) [x86_64-linux] I tried a lot of Googling, but I can't find a working answer to my problem. I'm importing a CSV file that will usually come from the…
Steven Hirlston
  • 1,869
  • 1
  • 15
  • 19
2
votes
2 answers

How to pass apostrophies from text areas to MySQL using PHP

I have a text area that users add notes too. On the next page I use the $_POST[Comments] to show what was typed. I have an edit button to go back and see what was typed and edit the notes but when I show the $_POST[Comments] it shows everything up…
JukEboX
  • 355
  • 1
  • 3
  • 16
2
votes
1 answer

Access data deep in a structure using get()

I have a p structure in R memory and I'm trying to access the Rate column of the matrix. When I type p$6597858$Sample in the console, I get ... p$`6597858`$Sample Rate Available X Y [1,] …
2
votes
4 answers

apostrophe php issue

I was making a school assignment with involves a shoutbox. A found great tutorial wich uses jquery,ajax,mysql and php. Now i run into a little problem with the following sentence: $result .= "
  • ".$row['user']."
  • 2
    votes
    1 answer

    CodeIgniter inserting apostrophes in to database query

    I have a bit of a strange problem that has been baffling me. All I am trying to do is run a query on a database table but for some reason, CodeIgniter is putting apostrophes into the query which is subsequently breaking the page. My code looks like…
    gok-nine
    • 195
    • 3
    • 15