Hi everyone,
I posted about this a while back, and finally found a workaround so I wanted to
share. My problem was regarding HTML bitstreams in DSpace 3.1 (XMLUI).
In previous versions of DSpace, the encoding for my UTF-8 bitstreams worked
just fine, but in DSpace 3.1, the encoding for ONLY the bitstreams was coming
out as ISO-8859 instead. After much searching, I finally found a workaround
which involved changing a value in the web.xml file, as follows:
In the original web.xml are the following lines:
<filter>
<filter-name>SetCharacterEncoding</filter-name>
<filter-class>org.dspace.app.xmlui.cocoon.SetCharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
I substituted:
<filter>
<filter-name>SetCharacterEncoding</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
<init-param>
<param-name>forceEncoding</param-name>
<param-value>true</param-value>
</init-param>
</filter>
So basically I took out the DSpace-specific encoding filter, and substituted
the Spring one (which is already included by default). So I had to change only
these lines, and my encoding problem was resolved. This tells me there might be
a problem in the DSpace encoding filter ... ?
- Jim Halliday
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette