On Sat, 2010-07-17 at 12:30 -0400, Rick Dwyer wrote:

> Hello all.
> 
> I inquired about the problem below on a FM board but no one could  
> help.  Hoping someone here may have an explanation or a workaround.
> 
> I have PHP Pill installed on both a Mac and PC versions of FileMaker  
> 11. On the Mac, things behave as expected. On the PC, they do not. My  
> code is below:
> 
> $old_string= 'Antique Houses™ Appointment Calendar';
> $find = '/[^a-z0-9]/i';
> $replace = '';
> $new_string = preg_replace($find, $replace, $old_string);
> $new_string = trim($new_string, "");
> echo $new_string;
> 
> So on the Mac, the above returns:
> AntiqueHousesAppointmentCalendar
> 
> vs. the PC returns:
> AntiqueHousesTAppointmentCalendar
> 
> Is there any reason the PC version of FM converts the TM symbol to a T  
> instead of removing as it should via regex?
> Thanks.
> 
> 
> --Rick
> 
> 
> 


It sounds like somewhere along the line the character format isn't being
observed. I'm not sure what PHP Pill is, and a quick Google for it
brought up some odd results which didn't look like software! What
happens when you output the string length on each system? I'm assuming
you're using Windows on the PC, and not Linux, as that is where I've
seen most issues with character encoding in the past.

Thanks,
Ash
http://www.ashleysheridan.co.uk


Reply via email to