jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kurz Wolfgang <wolfgang.k...@gwvs.de>
Subject AW: Jackrabbit encoding
Date Tue, 03 Mar 2009 13:09:13 GMT
Well i was thinking properties.

Here is the problem I encounter:

I have a String saved in Jackrabbit under the property Kategorie.
Lets say the string is "Österreich"

I read that string from jackrabbit and display it on my webpage. 
So far all looks fine.

Now I send that same string right back to my jcr doa to do a query for the node with the property
of that string.
What gets sent to my dao is somehow encoded differently. 
The "Ö" becomes some weird symbol.

If I do the following in my controller everything works fine:
byte[] utf8Bytes = kat.getBytes("ISO-8859-1");
kat = new String(utf8Bytes, "UTF-8");

So I was wondering where the encoding goes wrong. 

Thx again.

-----Ursprüngliche Nachricht-----
Von: Julian Reschke [mailto:julian.reschke@gmx.de] 
Gesendet: Dienstag, 3. März 2009 14:01
An: users@jackrabbit.apache.org
Betreff: Re: Jackrabbit encoding

Kurz Wolfgang wrote:
> Is there a way to set the encoding for Jackrabbit so all the content is UTF-8 encoded?
> Thx in advance:-)

Exactly what content? Node names? Properties other than binary properties?

BR, Julian

View raw message