I have problems with DSpace 1.5.1 and scandinavian characters. There are three 
problems I've been trying to solve and I cannot solve all of these at the same 
time



1. Search name with scandinavian character

2. Browse to name with scandinavian character

3. Submit item / edit item metadata with scandinavian character



Below are changes I have made to DSpace. With these changes first two issues 
are working, but submission don't (It works, but scand. characters gets messed 
up).  If I take these away, submission works right, but browsing and/or 
searching breaks.

I have been trying different combinations with these but I haven't find any 
that solves all three issues. What should I try next?



dspace-xmlui-api/dspace-xmlui-api/src/main/resources/aspects/ArtifactBrowser/sitemap.xmap



                <map:actions>

               <map:action name="SendFeedbackAction" 
src="org.dspace.app.xmlui.aspect.artifactbrowser.SendFeedbackAction"/>

                        <map:action name="set-encoding" 
src="org.apache.cocoon.acting.SetCharacterEncodingAction"/>

                </map:actions>

....

                        <map:match pattern="search">

                                <map:transform type="SimpleSearch"/>

                                <map:act type="set-encoding">

                                        <map:parameter name="form-encoding" 
value="ISO-8859-1"/>

                                </map:act>

                                <map:serialize type="xml"/>

                        </map:match>

                        <map:match pattern="simple-search">

                                <map:transform type="SimpleSearch"/>

                                <map:act type="set-encoding">

                                        <map:parameter name="form-encoding" 
value="ISO-8859-1"/>

                                </map:act>

                                <map:serialize type="xml"/>

                        </map:match>

                        <map:match pattern="advanced-search">

                                <map:transform type="AdvancedSearch"/>

                                <map:act type="set-encoding">

                                        <map:parameter name="form-encoding"  
value="ISO-8859-1"/>

                                </map:act>

                                <map:serialize type="xml"/>

                        </map:match>



dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/WEB-INF/web.xml

-with these I have tried several combinations changing ISO-8859-1 and UTF-8



       <init-param>

            <param-name>container-encoding</param-name>

            <param-value>ISO-8859-1</param-value>

        </init-param>



        <init-param>

            <param-name>form-encoding</param-name>

            <param-value>UTF-8</param-value>

        </init-param>



tomcat6/conf/server.xml

               URIEncoding="UTF-8"

               useBodyEncodingForURI="true" />





Tapani Lehtilä

Tampere University of Technology Library

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to