Closed Bug 1018050 Opened 12 years ago Closed 9 years ago

PHP errors in comments push character encoding declaration beyond the first 1024 bytes when searching on freearabicdictionary.com

Categories

(Web Compatibility :: Site Reports, defect)

x86
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: Filip013, Unassigned)

References

()

Details

(Whiteboard: [contactready] [php] [http])

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0 (Beta/Release) Build ID: 20140529113510 Steps to reproduce: Go to http://www.freearabicdictionary.com/ and type a word in Arabic, for example شَجَرَة Actual results: Firefox detects Western encoding and the text is unreadable. Expected results: The correct encoding is Unicode and manually setting it to Unicode makes the page readable. Internet Explorer 11 correctly detects the encoding.
URL: http://www.freearabicdictionary.com/
Henri, you seem like the most likely person to know more about what's going on here, can you help? :-) To be clear, STR: 1. Open http://www.freearabicdictionary.com/ 2. Copy-paste the arabic from comment #0 3. Click Search Oddly enough, closing the tab and reopening it (ctrl/cmd-shift-t) makes the issue go away.
Component: Untriaged → General
Flags: needinfo?(hsivonen)
Product: Firefox → Core
This site dumps PHP errors in a comment that precedes the HTML markup. When performing a search, the PHP errors are numerous enough that the character encoding declaration is pushed beyond the first 1024 bytes of the document. Since the search query is performed using HTTP POST, Firefox won't reload the page when discovering the character encoding declaration later in the document. The site should get rid of its PHP errors (or declare the encoding on the HTTP layer to make the PHP errors not matter).
Assignee: nobody → english-us
Component: General → English US
Flags: needinfo?(hsivonen)
Product: Core → Tech Evangelism
Version: 29 Branch → Trunk
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Firefox incorrectly detects character encoding. → PHP errors in comments push character encoding declaration beyond the first 1024 bytes when searching on freearabicdictionary.com
Assignee: english-us → nobody
Component: English US → Desktop
Whiteboard: [contactready] [php] [http]
AFAICT, this has been fixed by the site.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
Product: Tech Evangelism → Web Compatibility
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: