[FX.php List] Bad apostrophe character confounds FMP

Jschwartz jschwartz at exit445.com
Sun Dec 9 20:46:32 MST 2007


Bob,

I can solve today's problem by just replacing the bad apostrophe in  
the FMP record.

  My question is more toward regular best practices to help avoid the  
problem of non standard characters  in the future.

J


Sent from my iPhone.
------------------------
Jonathan Schwartz
Jonathan at Exit445.com
415-370-5011 iPhone

On Dec 9, 2007, at 7:31 PM, Bob Patin <bob at patin.com> wrote:

> I couldn't find it in my site files quickly, but I think I used
>
> HTMLspecialchars
>
> to avoid this problem, which i also had.
>
> A function that would do this would be the thing to use; something  
> that would also strip slashes...
>
> stripslashes(htmlspecialchars($thestring))
>
> But I can't remember whether I used htmlspecialchars or  
> htmlentities...
>
> Bob Patin
> Longterm Solutions
> bob at longtermsolutions.com
> 615-333-6858
> http://www.longtermsolutions.com
> Member of FileMaker Business Alliance and FileMaker TechNet
>
>  CONTACT US VIA INSTANT MESSAGING:
>     AIM or iChat: longterm1954
>     Yahoo: longterm_solutions
>     MSN: tech at longtermsolutions.com
>     ICQ: 159333060
>
> --------------------------
> Contact us for FileMaker hosting and programming for all versions of  
> FileMaker
> PHP • CDML • Full email services • Free DNS hosting •  
> Colocation • Consulting
>
>
> On Dec 9, 2007, at 9:11 PM, Alex Gates wrote:
>
>> Hi Jonathan -
>>
>> Couple questions -
>>
>> - How does the apostrophe look in FM?
>>
>> - What encoding are you using on your page?
>>
>> Alex
>>
>> Jonathan Schwartz wrote:
>>> Hi Folks,
>>> I spent a bunch of time diagnosing a 958 error that was eventually  
>>> narrowed down to a character in the name "O'Doherty".  The  
>>> application loads an existing FMP record into a session, allows  
>>> editing and then creates a new record based on the eited data.   
>>> The apostrophe appeared as "%92" in the FMP query, and caused the  
>>> 958 error during new record creation..  I have no idea how 958  
>>> relates, but it was definitely the culprit.
>>> The question is, what techniques do you us to condition data,  a  
>>> regexp? and on every field?
>>> Thx.
>>> Jonathan
>> _______________________________________________
>> 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


More information about the FX.php_List mailing list