A
A
Andrello2013-11-26 09:39:40
PHP
Andrello, 2013-11-26 09:39:40

Unknown square when returning query results?

I load json with Ajax from php, { "error":false } - invalid json as the validator writes.

2c94a349b279b49ede0689391a08e190.jpg

I type the same thing with my hands:
2aa97336c3ca1854fdc1a99042c4cf8c.jpg
Already valid I

find at the beginning of the line
4337ef774a2f745268fba7edb5ab3e84.jpg

PHP seems to be sending valid json, files in normal encoding.

What is this square?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Opaspap, 2013-11-26
@Andrello

Precisely files in the normal coding? not some BOM utf8 ? (check the first character in your source with a hex editor)

A
Alexey, 2013-11-26
@ScorpLeX

http://en.wikipedia.org/wiki/Byte_order_mark
Recode the file to utf-8 without BOM.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question