[FX.php List] passing unicode to filemaker
Alex Gates
alex at gandrpublishing.com
Mon Aug 7 06:39:01 MDT 2006
Still trying to get this to go to FileMaker, but it isn't making the
trip...
As erik suggested, I added this: to my <head> tags
<meta http-equiv="content-type" content="text/html; charset=utf-8">
This is the str_replace that I am using in an attempt change "degrees"
to "°".
$recipeinstructions = str_replace(array("degrees"), "°",
$recipeinstructions);
I get a 958 error code (parameter missing) - but if I change "°" to
"foo" I get no error and everything makes the trip.
Also, I get a ? in place of "degrees" when I echo out my recipe
instructions (when trying to replace with "°").
I realize that this ---> "°" is causing my problem... but I'm clueless
as to what format to use to get it to pass.
I know that the ° in Unicode is U+00B0 and ° in html.
Any suggestions?
Orrrr, would you just recommend using a script in FileMaker to change
degrees to ° after it is in FileMaker?
Alex P. Gates
G&R Publishing Co.
507 Industrial Street
Waverly, IA 50677
Ph: 319-352-5391 x 319
-----Original Message-----
From: fx.php_list-bounces at mail.iviking.org
[mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Alex Gates
Sent: Friday, August 04, 2006 2:29 PM
To: 'FX.php Discussion List'
Subject: [FX.php List] passing unicode to filemaker
Hi everyone - I searched around to try to find my answer, but I am
having no luck.
I've been working on a ton of str_replace to replace a bunch of stuff in
a recipe submission form...
I'd like to add another to replace "degrees" with ° . I can't get it to
pass through... and I am not sure if it is a PHP or an FX.PHP problem...
Is there any special formatting I need to do in my PHP to send it as
Unicode? (U+00B0) -
Alex P. Gates
G&R Publishing Co.
507 Industrial Street
Waverly, IA 50677
Ph: 319-352-5391 x 319
-----Original Message-----
From: fx.php_list-bounces at mail.iviking.org
[mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Kevin Futter
Sent: Wednesday, August 02, 2006 11:14 PM
To: FX.php Discussion List
Subject: Re: [FX.php List] FM script issues
On 3/8/06 1:31 PM, "DC" <dan.cynosure at dbmscan.com> wrote:
> just swinging blind here...did you try the old trick of exiting the
> field you are writing to in a script step?
It's not my script; in fact, it's not even my database. I have access to
it,
so I could change it I guess, but it's a complicated script, and I'd be
concerned about messing with it. I'm also not much of an FM scripter, so
I'm
not even sure what you mean exactly! Anyway, I'll have a look and get
back.
It certainly worked as-is in FMU6, which is puzzling.
As a point of interest, I tried using -script.prefind, which actually
worked
the first time, but not subsequently. Because I'm submitting to the db,
'prefind' data doesn't really exist, so that makes sense (except for
working
the first time).
More later ...
--
Kevin Futter
Webmaster, St. Bernard's College
http://www.sbc.melb.catholic.edu.au/
------------------------------------------
This e-mail and any attachments may be confidential. You must not
disclose or use the information in this e-mail if you are not the
intended recipient. If you have received this e-mail in error, please
notify us immediately and delete the e-mail and all copies. The College
does not guarantee that this e-mail is virus or error free. The
attached files are provided and may only be used on the basis that the
user assumes all responsibility for any loss, damage or consequence
resulting directly or indirectly from the use of the attached files,
whether caused by the negligence of the sender or not. The content and
opinions in this e-mail are not necessarily those of the College.
_______________________________________________
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