apostrophe

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 instead of 'It's a problem': 'It\'s a problem' 'It&apos\;s a problem' 'It\${apos}s a ...

Trouble Escaping Apostrophe in PHP CSV Upload with fgetcsv()

Hello, I am uploading email addresses from a CSV file, via fgetcsv(), into a MySQL database. The problem that I am running into is that I cannot escape email addresses containing an apostrophe (or single quote). So, O'[email protected] will not become O\'[email protected] I know that this is supposed to happen, however I have been unable to f...

Strange problem of apostrophe in communicating with PHP script from Android

Hi, I am communicating with PHP web services in Android application. All the requests send from android are encoded with UTF-8 and the php scripts decodes it with utf-8. But when any request is send with apostrophe ' the decode function of php doesn't seem to work the way it should. For example, if I send the request as "Today's Hor...

SAS code to strip apostrophe from end of data values

I have a variable Deck1-Deck100 (Deck1 through Deck100 representing 100 trials of a task) with four possible values A' B' C' D'. I need to recode this variable so that A' and B' = 0 and C' and D' = 1. Can you help? I know nothing about how to compress variables. ...

mysql ’ show up as ’

Hi there, when I try and run: mysql -u myUser -pPassword -D myDatabase -h myHost < toInsert.sql from my ubuntu desktop where myHost is a remote Red Hat server and toInsert.sql contains ’ they show up as ’ How can I resolve this? Note! ’ is NOT the same as ' When I run toInsert.sql from a windows machine with a mysql gui client I ...

Detecting an Apostrophe in a NSString?

I'm using Gamekit to send data via bluetooth between two devices. I want to get the name of the device that sent it, but if the name is "Bob's iPhone" I want to cut off the "'s iPhone". I first check for ending in "iPhone" or "iPod Touch". if ([name hasSuffix:@" iPhone"]) { name = [name substringToIndex:[name length]-7]; } else i...

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. echo "<input type=\"text\" onblur=\"if (this.value == '') {this.value = '$cleaned';}\" o...

Problem converting ISO8859-1 to UTF-8 in PHP

Hello, 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 html fields). Thanks ...

Apostrophe replaced by ’ in mySQL table

I'm a complete mySQL & PHP noob, and in my table, whenever there is an apostrophe, it gets replaced by ’. I've searched and found that it could be because my table is not UTF-8, but I changed all the collation settings in phpMyAdmin to utf8_unicode_ci, and I still get the ’. To be clear, I am sending the data to a PHP script from a...

UITextField crashes app when entering apostrophe (')

Hi friends, my application is crashing when I enter an ' (apostrophe) in the textfield. Can anyone please tell the solution for the problem. Below is the place where it crashes hotelTextfield.text = [hotelList objectAtIndex:indexPath.row]; I entered other strings in the textfield but those didn't cause any issue. But whenever I enter...

Multiple rows for insert command - Apostrophe problem

I'm trying to insert multiple rows using SqlCommand from C# to SQL Server. I'm forming a simple query as below: Insert into temp(field1, field2) values (1, 'test'), (2, 'test1'), (3, 'test2') and so on till 100 rows. For the example purpose I only gave couple of fields here but it actually contains 25 fields and 20 out of this are strin...

Apostrophe (Smart Quote) in search throws Apache 400 Bad Request

I have a search form in my web application that throws an Apache 400 Bad Request error when you search using an apostrophe (smart quote, i.e. ’ not '). This happens when someone copy and pastes from Microsoft Word (which automatically converts tick marks to smart quotes). The form causes a GET request which puts the search string in t...

Javascript link in aspx page within a SharePoint frame replaces apostrophes to #39 element

I have problem with SharePoint encoding the javascript link, that normally renders like href="javascript:Function('url');" but in Sharepoint like href="javascript:Function(& #39;url& #39;)" wich of course does not work. What do I need to do? I need to be able to use my user control as stand alone as well as linked into a sharepoint pag...

Which symfony-based CMS is the most extensible?

Hello, I'm looking for a symfony-based CMS, and I have heard about Diem and Apostrophe, but none of them offers all of the features I am searching for. In your opinion, which of these CMS' is the most easy to extend? Do you know any other Symfony-based CMS I would want to consider? EDIT : By 'to extend' I mean adding probably unsupport...