I have this useBodyEncodingForURI="true" already.

However I noticed that if I during the submission process change 
character-encoding from the browser from ISO-8859-1 to UTF-8, then data will be 
saved in right way to the database. Browser don't do this automatically. I 
tried both Firefox and Internet Explorer.

Headings from dspace page are following. Is there some misconfiguration in 
these?
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />

>-----Original Message-----
>From: mikan.d.dspace listmail [mailto:mikan.dsp...@gmail.com]
>Sent: Wednesday, February 11, 2009 10:45 AM
>To: Lehtilä Tapani
>Cc: dspace-tech@lists.sourceforge.net
>Subject: Re: [Dspace-tech] DSpace 1.5.1 and Scandinavian characters
>
>Morjens Tapani,
>
>Just add "useBodyEncodingForURI=true" in Tomcat's server.xml and
>voila: things start to work! Unfortunately we havent found a way to
>fix this in Jetty.
>
>   <Connector port="8081" protocol="HTTP/1.1"
>               connectionTimeout="20000"
>               redirectPort="8443"
>               useBodyEncodingForURI="true" />
>
>
>Hope this helps,
>Mika
>
>
>
>2009/2/10 Lehtilä Tapani <tapani.leht...@tut.fi>:
>> 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
>>

------------------------------------------------------------------------------
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