Well.. I stole the code snippet from an online tutorial about JCR.... it was 
actually just to test some XPath queries..and I did trust the content of that 
code (which is btw not about JackRabbit, but the JCR api).
But you're right, the encoding set to "" is non-sense...

Anyway, my query works fine, so the mystery is raised thanks to you guys....

Thank you very much,

BR, 
Patrick

----- Message d'origine ----
De : Jukka Zitting <[EMAIL PROTECTED]>
À : [email protected]; Patrick Wider <[EMAIL PROTECTED]>
Envoyé le : Mardi, 23 Octobre 2007, 12h31mn 13s
Objet : Re: Re : Re : Binary Content Search Problem...

Hi,

On 10/23/07, Patrick Wider <[EMAIL PROTECTED]> wrote:
>    Node res1 = file1.addNode("jcr:content", "nt:resource");
>    res1.setProperty("jcr:mimeType", mimetype);
>    res1.setProperty("jcr:encoding", "");

Gotcha. The current PlainTextExtractor class will use the jcr:encoding
value as-is if the property is available, and fail silently (I guess
we should at least add some logging...) if the encoding is not
supported by the JVM.

You should either not set the jcr:encoding property at all or set it
to a valid encoding name.

BR,

Jukka Zitting


      
_____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail

Reply via email to