On Mar 5, 1:35 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
Quote:
On Wed, 05 Mar 2008 13:21:49 +0100, spamfilteracco...@gmail.com
>
<spamfilteracco...@gmail.comwrote:
Quote:
On Mar 5, 1:14 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
>
Quote:
Quote:
I'm about 99% sure the 'data' file DOES have a BOM... Do you have a HEX
editor to check it out? Be aware that offcourse most editors won't show
a
BOM to you if they show a text file, they just interpret (or ignore) it..
>
Quote:
I use emacs and yes it does have a built-in hex editor. :)
>
Quote:
Here's the beginning of the data file:
>
Quote:
00000000: 5b5b 5b22 3437 2e34 3935 3736 3022 2c22 [[["47.495760","
...
>
Are you looking at the real file, or some file that you uploaded? I seem
to remember some FTP clients abominable behaviour (aaargh, DON'T mess with
files)...
I tested the other branch when the file doesn't exist. The result:
var data =
<efbbbf>undefined
;
Scary, isn't it? :)
I checked the PHP file again and it turned out the BOM was in the
file itself outside of the PHP section. I don't know any good reason
how it could get there, but it was there, so PHP was innocent.
Thanks for the help everyone and sorry for the noise. Anyway, this
thread may be helpful for someone who runs into the same problem
later.