Bug 92466

Summary: Injected disabled topic content in InjectionFilter must use document charset
Product: [Eclipse Project] Platform Reporter: Dejan Glozic <dejan>
Component: User AssistanceAssignee: Dejan Glozic <dejan>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P1    
Version: 3.1   
Target Milestone: 3.1 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.