Closed Bug 783946 Opened 12 years ago Closed 12 years ago

Strange chars at begging of javascript file when served out of php working fine when served out of IIS aspx page

Categories

(Firefox :: Untriaged, defect)

14 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 238694

People

(Reporter: akshay.srin, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0.1
Build ID: 20120713134347

Steps to reproduce:

A javascript file served out of apache to firefox has the following strange chars in it when examined with firebug in firefox:

Working fine in google chrome and other browsers out of same php page.
Page is hosted at http://114.143.28.50:8080/phpexample1/public/formsbased.php so you can have a look for yourself.


Actual results:

Page not working in firefox.


Expected results:

Page should work in firefox like it works in google chrome.
“” is a byte order mark: https://en.wikipedia.org/wiki/Byte_order_mark#UTF-8

It’s been introduced by Microsoft, is not required by the standard, and can be removed.  It is mostly added by Windows text editors.

https://bugs.php.net/bug.php?id=22108 mentions a PHP option to ignore it.

Seeing it as “” means your file is probably being rendered using the ISO-8859-1 encoding, which is not UTF-8.  If it contains only ASCII characters, just remove the BOM.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.