[FX.php List] special characters and fm

Wes Plate wes at automaticduck.com
Tue Sep 25 14:56:26 MDT 2007


On 9/12/07 1:07 PM, "Alicia M. Cosenza" wrote:

> I have recently noticed that some of my web forms occasionally would
> mysteriously not submit to FM for unexplained reasons.

I have a similar situation, but in my case it happens when the XML that my
FX scripts parse contains "foreign" characters.  For example in a case today
this text was in the failed post:  Fingerörtsvägen

I have created a backup form where I can paste into it the XML that failed
to automatically parse into FileMaker, it works while the automatic system
does not.  The idea of our system is that XML is "posted" to our server from
another web server and the info goes into FileMaker.

My scripts save off the XML to a temp file for debugging, and here's the
difference I see in the two files for the above example...

"Automatic" XML...
<ADDRESS1>Fingerˆrtsv‰gen 8</ADDRESS1>

"Pasted into form" XML...
<ADDRESS1>Fingerörtsvägen 8</ADDRESS1>

Ah, one thing I see as I compare these files in TextWranger is the "good"
one is noted at the window bottom as being UTF-8, no BOM while the "bad" one
is Western (Mac OS Roman).


I imagine that I need to make sure I'm setting my XML stream to UTF-8, what
call would I make to do that?

Something like...
$request = MakeUTF8($request);
?

Thank you!


-- 
Wes Plate
 Automatic Duck, Inc.
  http://www.automaticduck.com




More information about the FX.php_List mailing list