Questions tagged [apostrophe]

The single-quote character (')

499 questions
3
votes
0 answers

Apostrophes converted to ' when sending variable to Javascript

I sent in the following array of dictionaries through Python to HTML: [{'color': '#CFCFC4', 'day': 7}, {'color': '#FDFD96', 'day': 8}] which then gets sent to a Javascript function using the following line: generateHTML("{{ colors }}"); However,…
xilinzhou
  • 33
  • 6
3
votes
0 answers

Can BreakIterator be made to recognise "'tis" as a word

Using a BreakIterator.getWordInstance(), the text "can't" is considered one "word" A little experimentation shows that while an apostrophe's within a word is considered part of the word; apostrophes at either end are considered as being separate…
Bohemian
  • 412,405
  • 93
  • 575
  • 722
3
votes
2 answers

Apostrophe Appearing as "'" in Title Tab of Rails App

Apostrophes are appearing as "'" in the title tabs of my Rails application. Everywhere else the apostrophes appear correctly. How may I correct this issue? Thank you.
Richard74
  • 89
  • 2
  • 11
3
votes
3 answers

Add apostrophe to last name search

I created a proc that will return a list of applicants by lastname. I have a problem searching Applicants with last name that has apostrophe (Example O'Connor). Could you please help finding those applicants: Below is my Search Code: if…
user203671
  • 31
  • 1
  • 3
3
votes
6 answers

missing ) after argument list? jQuery

Using the code below I can insert a new row to my table (#courseelements). $("#addbutton").click(function() { $('#courseelements > tbody:last').append('Helloworld'); }); However, I'd like to replace the Helloworld with a…
David
  • 1,171
  • 8
  • 26
  • 48
3
votes
5 answers

Why is my jQuery code not able to read an apostrophe?

I have a web form that automatically checks the checkboxes when the page loads based on the data stored in the MYSQL database. Everything works just fine with the exception of data that contains an apostrophe. Here's my code: JSON: …
the_boy_za
  • 287
  • 1
  • 8
  • 21
2
votes
2 answers

Regular Expression to strip away single quotes and preserve apostrophes

I want to parse words from a text file. Apostrophes should be preserved, but single quotes should be removed. Here is some test data: john's apostrophe is a 'challenge' I am experimenting with grep as follows: grep -o "[a-z'A-Z]*" file.txt and it…
ScrollerBlaster
  • 1,578
  • 2
  • 17
  • 21
2
votes
3 answers

How does PHP naturally anticipate apostrophes in variables?

I just noticed that I could use an a variable as an argument, like this: $variable = "This's a string."; function('$variable'), and not like this: function('This's a string');. I can see why I can't do the latter, but I don't understand what's…
Wolfpack'08
  • 3,982
  • 11
  • 46
  • 78
2
votes
4 answers

How to search for matches with optional special characters in SQL?

I have a problem with a search query I am using my data contains names and information that has apostrophes in various forms (HTML encoded and actual). So for example I would like an alternative to this: SELECT * FROM Customers WHERE…
RoguePlanetoid
  • 4,516
  • 7
  • 47
  • 64
2
votes
1 answer

Keep apostrophes when reading Excel file into pandas dataframe

Reading Excel file into Pandas dataframe like this: import pandas as pd df = pd.read_excel(open('C:/somedir/somefile.xlsx','rb'), sheet_name=0) print(df) If a value in a cell starts with ' (single-quote, apostrophe) - pandas omits it. For example,…
2
votes
1 answer

keeping the apostrophe using the textcnt function from the tau package in R

The textcnt function in R's tau package has a split argument and it's default value is split = "[[:space:][:punct:][:digit:]]+" ç this argumet uses the apostrophe ' to split into words too and I don't want that, how can I modify the argument so it…
2
votes
4 answers

Encoding string for apostrophe in asp.net

I am having a problem trying to resolve an apostrophe related issue. I have searched SO, but could not find anything that would help me. My clientside javascript code is: var strUserText = uSettings.replace(/'/g, "'") after the above line…
LearningCSharp
  • 1,292
  • 2
  • 13
  • 26
2
votes
1 answer

How to disable Smart punctuation in flutter textfield ? Problem when a String contains the apostrophe sign : " s'habiller", "Brin d'herbe"

Am encountering a problem when a string contains an apostrophe (single quote). Am developing a vocabulary learning app (French / English). The user must answer quizzes. The phone tells the user if what he/she types is the correct…
SylvainJack
  • 1,007
  • 1
  • 8
  • 27
2
votes
3 answers

Unable to remove right single quotation mark

Been trying to remove a right single quotation mark from data coming into a Perl form unsuccessfully. If I paste the text: ( Can’t Be Dodged ) into the form it never removes the right single quotation mark. I've tried different methods of encoding…
Nathan
  • 31
  • 4
2
votes
3 answers

python re split at all space and punctuation except for the apostrophe

i want to split a string by all spaces and punctuation except for the apostrophe sign. Preferably a single quote should still be used as a delimiter except for when it is an apostrophe. I also want to keep the delimeters. example string words =…