jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: Re : Re : Binary Content Search Problem...
Date Tue, 23 Oct 2007 10:31:13 GMT

On 10/23/07, Patrick Wider <pat_wider@yahoo.fr> 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.


Jukka Zitting

View raw message