Announcement Announcement Module
Collapse
No announcement yet.
JasperReportsHtmlView UTF-8 encoding problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JasperReportsHtmlView UTF-8 encoding problem

    Hi all,

    It seems that JasperReportsHtmlView is not able to output the result as UTF-8 encoding. I have configured the view as follow ..

    Code:
    ...
        <bean id="basicReportMulti" class="org.springframework.web.servlet.view.jasperreports.JasperReportsHtmlView">
    		<property name="url">
    			<value>/WEB-INF/reports/SQLReport.jrxml</value>
    		</property>        
    		<property name="jdbcDataSource">
                <ref bean="dataSource"/>
    		</property>
    		<property name="exporterParameters">
    			<map>
    				<entry key="net.sf.jasperreports.engine.JRExporterParameter.CHARACTER_ENCODING">
    					<value>UTF-8</value>
    				</entry>  
    			</map>
    		</property>        
    	</bean>
    ...
    But the result encoding page is ISO-88591. Have anyone succeeded to configure the JasperReportsHtmlView as UTF-8 encoding ?? Welcome any comments !! Thanks

  • #2
    I would guess that the problem lies in that Spring does not reflect the encoding of the JasperReports output in the response, that is it doesn't set the encoding header in the response correctly.

    If you log this as a bug in JIRA I'll take a look at it in the 1.3 timeframe, possibly earlier.

    Regards,

    Rob

    Comment


    • #3
      Thanks for your reply. Here is the bug issue

      http://opensource.atlassian.com/proj...rowse/SPR-1124

      Comment

      Working...
      X