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
Alexander Klimetschek made changes - 10/May/07 09:16 AM
Field Original Value New Value
Attachment nekohtmltransformer-encoding.patch [ 12357020 ]
Ellis Pritchard made changes - 26/Nov/07 04:17 PM
Attachment NekoHTMLGenerator_BRANCH2_1_X.patch [ 12370212 ]
Ellis Pritchard made changes - 26/Nov/07 04:20 PM
Affects Version/s 2.1.11-dev (Current SVN) [ 12312231 ]
Jörg Heinicke made changes - 04/Apr/08 03:31 AM
Affects version (Component) Parent values: Blocks: HTML(10168). Level 1 values: 1.0.0-M1(10198).
Fix version (Component) Parent values: Blocks: HTML(10240). Level 1 values: 1.0.0-RC1(10271).
Priority Major [ 3 ] Minor [ 4 ]
Affects Version/s 2.2 [ 12310611 ]
Fix Version/s 2.2-dev (Current SVN) [ 12313093 ]
Assignee Jörg Heinicke [ joerg.heinicke@gmx.de ]
Jörg Heinicke made changes - 04/Apr/08 03:35 AM
Affects Version/s 2.2 [ 12310611 ]
Jörg Heinicke made changes - 04/Apr/08 12:00 PM
Fix version (Component) Parent values: Blocks: HTML(10240). Level 1 values: 1.0.0-RC1(10271). Parent values: Blocks: HTML(10240).
Fix Version/s 2.2-dev (Current SVN) [ 12313093 ]
Jörg Heinicke made changes - 08/May/08 05:38 AM
Resolution Fixed [ 1 ]
Fix Version/s 2.2-dev (Current SVN) [ 12313093 ]
Fix Version/s 2.1.12-dev (Current SVN) [ 12312903 ]
Status Open [ 1 ] Closed [ 6 ]