[FX.php List] "degrees" symbol

Alex Gates alex at gandrpublishing.com
Wed Dec 20 10:43:13 MST 2006


Dan,

Thanks for the response - 

Well, we use an Applescript to take the FileMaker data and put it into
InDesign - we currently do a global find and replace in FileMaker before
we can export it to InDesign - I'm re-working the web side of things and
thought it would be handy to be able to put the degrees symbol in
automatically to eliminate the find and replace before exporting to
InDesign...

So, I may be out of luck.  I need it to display properly on the web -
but I also need it in FileMaker as the degrees symbol to export it.

Looks like we may have to stick to the find and replace

Alex P. Gates


-----Original Message-----
From: fx.php_list-bounces at mail.iviking.org
[mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of DC
Sent: Wednesday, December 20, 2006 10:30 AM
To: FX.php Discussion List
Subject: Re: [FX.php List] "degrees" symbol

it sounds like you want to let users type the word degrees and then 
store it as a degree symbol in FMP... right?

why would you want to do that? the only reason i can think of is if you 
have some users looking at the data in native FMP layouts.

i would think you should just encode the degrees symbol to send it to 
FMP through FX.php:

° OR °	OR °


This should do the trick (stores HTML entity in FMP so that when it 
comes back out the Web page will show a degree symbol):
 > $instructions2 = str_replace("degrees", "°", $instructions);


As an aside...
look at urlencode() to automatically change degree symbol to entity in 
PHP. also, look at htmlentities() which also has a charset parameter.

you'd have to use urldecode() AND/OR html_entity_decode() to get it back

to display as a degrees symbol in a web page.

dan

Alex Gates had written:
> Greetings-
> 
> I'm doing a string replace to replace the word "degrees" with the
> degrees symbol "°".
> I'm using this code for the string replace:
> 
> $instructions = trim($_POST['instructions']);
> $instructions2 = str_replace("degrees", "°", $instructions);
> 
> 
> It works fine in the PHP and displays correctly on my "please verify"
> page - but when I try to submit this to FileMaker I get:
> Error 958 - Parameter missing in query.
> 
> I only get this error if I happen to use the word "degrees."  It works
> fine if I don't.
> 
> My charset is: iso-8859-1
> 
> Any ideas?
> 
> Alex P. Gates
> 
> 
> _______________________________________________
> 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