History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WW-526
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Mathias Bogaert
Reporter: Rickard ?berg
Votes: 0
Watchers: 0
Operations

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

Velocity using include ignores character encoding

Created: 21/Apr/04 07:05 AM   Updated: 20/Oct/04 07:06 AM
Component/s: Views
Affects Version/s: 2.1, 2.0, 2.1.1, 2.1.2, 2.1.3
Fix Version/s: 2.1.5

File Attachments: 1. Text File WebWorkUtil.patch (3 kb)



 Description  « Hide
WebWorkUtil creates a response wrapper when doing an include, and the wrapper uses an internal byte buffer to cache written data. The buffer does not use any character encoding, so UTF-8 data written to the stream is broken when the buffer is later written to the actual output writer.

The fix is to use a StringWriter instead of a ByteArrayOutputStream. This will properly handle character data.

 All   Comments   Change History      Sort Order:
Rickard ?berg - [21/Apr/04 07:05 AM ]
Patch to fix it.