Issue Details (XML | Word | Printable)

Key: COCOON-2063
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Jörg Heinicke
Reporter: Alexander Klimetschek
Votes: 1
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Cocoon

NekoHTMLTransformer needs to set the default-encoding of the current system to work properly with UTF-8

Created: 10/May/07 09:15 AM   Updated: 08/May/08 05:38 AM
Return to search
Component/s: Blocks: HTML
Affects Version/s: 2.1.11, 2.2
Fix Version/s: 2.1.12-dev (Current SVN), 2.2-dev (Current SVN)

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works NekoHTMLGenerator_BRANCH2_1_X.patch 2007-11-26 04:17 PM Ellis Pritchard 1.0 kB
Text File Licensed for inclusion in ASF works nekohtmltransformer-encoding.patch 2007-05-10 09:16 AM Alexander Klimetschek 3 kB

Other Info: Patch available
Affects version (Component): Blocks: HTML - 1.0.0-M1
Fix version (Component): Blocks: HTML


 Description  « Hide
The NekoHTMLTransformer uses the cyberneko HTMLConfiguration for tidying html. Unfortunately it does not use the system's current encoding as default, instead you have to set a property to set your encoding. But this varies from one OS to another, so the best solution is to set this property automatically in the NekoHTMLTransformer depending on what Java uses as defaultCharset:

            config.setProperty("http://cyberneko.org/html/properties/default-encoding", Charset.defaultCharset().name());


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.