[FX.php List] Continuing problem with parsing apostrophes
Steve Winter
steve at bluecrocodile.co.nz
Wed Mar 2 09:07:53 MST 2011
So half my suggestion won't work 'cause I'm in the middle of an API project and I sent you API ideas, not FX ones (Doh...!)
What about my other (cheats, but gets it done) solution...?
$string = str_replace('’', "'", $string);
Steve
On 2 Mar 2011, at 16:03, Bob Patin wrote:
> Thought it would work, but it didn't... this is driving me crazy!
>
> On Mar 2, 2011, at 9:15 AM, Gareth Evans wrote:
>
>> html_entity_decode();
>> --
>> GARETH EVANS
>>
>>
>>> From: Bob Patin <bob at patin.com>
>>> Reply-To: "FX.php Discussion List" <fx.php_list at mail.iviking.org>
>>> Date: Wed, 2 Mar 2011 09:14:06 -0600
>>> To: "FX.php Discussion List" <fx.php_list at mail.iviking.org>
>>> Subject: [FX.php List] Continuing problem with parsing apostrophes
>>>
>>> I'm still having trouble with the following:
>>>
>>> I'm reading from one table, doing stuff, and then writing the same record to a
>>> new table.
>>>
>>> If the text is something like
>>>
>>> Bob's
>>>
>>> it displays fine on my page, but when I write it back to the new table, it
>>> gets changed to
>>>
>>> Bob’s
>>>
>>> What's the command to make sure that it gets written back to the database
>>> properly? I thought it was stripslashes() but I can't seem to get that to do
>>> anything.
>>>
>>> Thanks,
>>>
>>> Bob Patin
>>> Longterm Solutions
>>> bob at longtermsolutions.com
>>> 615-333-6858
>>> http://www.longtermsolutions.com
>>> iChat: bobpatin
>>> FileMaker 9, 10 & 11 Certified Developer
>>> Member of FileMaker Business Alliance and FileMaker TechNet
>>> --
>>> Expert FileMaker Consulting
>>> FileMaker Hosting for all versions of FileMaker
>>> PHP € Full email services € Free DNS hosting € Colocation € Consulting:
>>>
>>> _______________________________________________
>>> FX.php_List mailing list
>>> FX.php_List at mail.iviking.org
>>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
We've moved...! Please see our new address below.
Steve Winter
steve at bluecrocodile.co.nz
m: +44 77 7852 4776
2A St Mary's Road
Bishopstoke, SO50 6BP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20110302/71de0796/attachment.html
More information about the FX.php_List
mailing list