Community
Participate
Working Groups
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.
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.