Bug 92466 - Injected disabled topic content in InjectionFilter must use document charset
Summary: Injected disabled topic content in InjectionFilter must use document charset
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: User Assistance (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P1 major (vote)
Target Milestone: 3.1 M7   Edit
Assignee: Dejan Glozic CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-22 18:13 EDT by Dejan Glozic CLA
Modified: 2005-04-24 18:48 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dejan Glozic CLA 2005-04-22 18:13:07 EDT
At the moment, injected HTML for a disabled topic is in UTF-8 charset. This 
will fail on any translated page that does not use this charset. We must 
detect the charset string of the source page and use it to inject the correct 
bytes.
Comment 1 Dejan Glozic CLA 2005-04-24 18:48:28 EDT
Fixed by reusing most of the logic from HTMLDocParser. Some methods in this 
class are marked as static, allowing us to capture the META tag in a buffer, 
then pass it to the HTMLDocParser static method to extract a charset string 
from it.