[FX.php List] Continuing problem with parsing apostrophes

Steve Winter steve at bluecrocodile.co.nz
Wed Mar 2 08:16:57 MST 2011


Hi Bob

Have you tried getting the content out using getFieldUnencoded() instead of getField()....? and working with the resulting text...?

Alternatively, if this is a single isolated issue you could just cheat and do;

	$string = str_replace('’', "'", $string);

Cheers
Steve


On 2 Mar 2011, at 15:14, Bob Patin wrote:

> 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

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/10aa40e1/attachment-0001.html


More information about the FX.php_List mailing list