dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #17738
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 7181: minor fix to xslt-html rendering, fixes issues with rendering of UTF-8 characters
------------------------------------------------------------
revno: 7181
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2012-06-04 20:57:03 +0200
message:
minor fix to xslt-html rendering, fixes issues with rendering of UTF-8 characters
modified:
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/view/XsltHtmlView.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/view/XsltHtmlView.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/view/XsltHtmlView.java 2012-05-30 13:29:47 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/view/XsltHtmlView.java 2012-06-04 18:57:03 +0000
@@ -65,7 +65,7 @@
Assert.notNull( object );
- InputStream input = new ByteArrayInputStream( JacksonUtils.toXmlWithViewAsString( object, viewClass ).getBytes() );
+ InputStream input = new ByteArrayInputStream( JacksonUtils.toXmlWithViewAsString( object, viewClass ).getBytes("UTF-8") );
Source xmlSource = new StreamSource( input );
Transformer transformer = TransformCacheImpl.instance().getHtmlTransformer();