|
Posted by Richard Lynch on 04/01/05 10:10
On Thu, March 31, 2005 12:44 pm, Nick Zukin said:
> I've got a client who uses Filemaker Pro and I'm trying to parse some of
> their data. However, the checkbox data of theirs is giving me fits. From
> what I've read, it's supposed to save checkboxes as data separated by
> carriage returns. However, in looking at the data in EditPlus I can't
> discern what they are and in trying to parse them with str_replace I've
> had
> no luck searching for \r \n \r\n or anything else.
>
> Anyone else had this misfortune?
Since you have the string in question, and the funky character is
non-printable, do this:
<?php
$string = "funky-ass string from Filemaker";
for ($i = 0; $i < strlen($string); $i++){
$c = $string[$i]; //Yes, it's deprecated. Whatever.
$o = ord($c);
if ($o < 65) echo "Found character with ASCII value: ", $o, "<br />\n";
}
?>
Once you know what the ASCII value is, figuring out what to do about it
gets pretty trivial.
You could also open the files in a Hex editor and find out what the
character is, but the it's not a PHP question :-)
--
Like Music?
http://l-i-e.com/artists.htm
Navigation:
[Reply to this message]
|