Wrong cut and paste:
replace:

shib-dspace-1.5.1-src-release/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/utils/AuthenticationUtil.java

with:
http://java.sun.com/javase/6/docs/api/java/util/Properties.html#load(java.io.InputStream)


Jochen Lienhard schrieb:
> Hi,
>
> the problem is in 
> dspace-api/src/main/java/org/dspace/core/ConfigurationManager.java
> in the method loadConfig the call:
> properties.load(is);
>
> As you can see in: 
> shib-dspace-1.5.1-src-release/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/utils/AuthenticationUtil.java
>
> This call loads the properties using ISO 8859-1 encoding and NOT utf-8.
>
> Any ideas for the solution?
> - converting the dspace.cfg to ISO 8859-1
> - converting dspace.cfg to an XML file and using loadfromXML
> - writing a checker, that converts the values of the properties ISO8859 
> to UTF-8
>
> Greetings
>
> Jochen
>
>
> Kim Shepherd schrieb:
>   
>> Hi Jochen,
>>
>> There is a better way to set UTF-8 encoding in JSP pages, and it should fix 
>> the problem you're seeing:
>>
>> <%@ page contentType="text/html;charset=UTF-8" %>
>>
>> This goes near the other '<%@ page' lines, where constants and config 
>> parameters are being imported.
>>
>> Cheers,
>>
>> Kim.
>>
>>   
>>     
>>> -----Original Message-----
>>> From: Jochen Lienhard [mailto:[EMAIL PROTECTED]
>>> Sent: Tuesday, 9 December 2008 9:26 p.m.
>>> To: dspace-tech@lists.sourceforge.net
>>> Subject: [Dspace-tech] encoding and a hint about Messages.properties
>>>
>>> Hi,
>>>
>>> it seems that I have a problem with the encoding using jspui.
>>>
>>> I'm using DSpace 1.5.1
>>> In the dspace.cfg I wrote:
>>>
>>> # Name of the site
>>> dspace.name = DSpace der Universitätsbibliothek Freiburg
>>>
>>> The dspace.cfg is UTF-8 encoded.
>>>
>>> In the Web-page the title and the menu looks like this:
>>> DSpace der Universitätsbibliothek Freiburg
>>>
>>> But the meta-tag is OK.
>>>
>>> <title>DSpace der Universitätsbibliothek Freiburg : Zur
>>> Startseite</title>
>>>         <meta http-equiv="Content-Type" content="text/html;
>>> charset=UTF-8" />
>>>
>>> It seems that DSpace loose somewhere the UTF-8 encoding, but WHERE?
>>>
>>>     
>>>       
>
>
>   


-- 
Dr. rer. nat. Jochen Lienhard
UB Universität Freiburg
Dezernat EDV
Tel: (0761) 203-3908
Email: [EMAIL PROTECTED]


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to