Closed Bug 1593902 Opened 5 years ago Closed 5 years ago

PDF Viewer doesn't uses BOM to detect title encoding

Categories

(Firefox :: PDF Viewer, defect, P3)

70 Branch
defect

Tracking

()

RESOLVED FIXED
Firefox 72

People

(Reporter: ashalimov, Unassigned)

References

Details

Attachments

(1 file)

37.36 KB, application/pdf
Details
Attached file DOC_Last.pdf

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0

Steps to reproduce:

When I open PDF file with some national symbols in title (Cyrillic in my case), encoded in UTF16 with BOM, it is displayed incorrectly in Firefox tab title. Some other browser that also has built-in PDF viewer displays them properly. Attached sample document with such title.

Actual results:

Text is displayed incorrectly: first two symbols ÿþ (that corresponds to 0xFF and 0xFE respectively), then garbage letters. It looks like Firefox displays it as plain ASCII.

Expected results:

Firefox should use BOM to detect proper encoding. In this case, the title should be "Общее описание системы".

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → PDF Viewer
Priority: -- → P3
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Depends on: 1595519
Resolution: --- → FIXED
Target Milestone: --- → Firefox 72
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: