Hi,

On 12/7/06, Tobias Bocanegra <[EMAIL PROTECTED]> wrote:
of course the application is free to choose what information to store
in this property. for example, an zipped xml-file could have:
  jcr:mimeType "text/xml"
  jcr:encoding "gzip"
although this might not make sense :-)

This is more in line with the HTTP Content-Encoding header than the
charset parameter of the MIME type as suggested by JSR 170. I think
that the Content-Encoding makes more sense, as there already is a
defined way to embed character encoding information in the MIME type.
For example:

   jcr:mimeType "text/plain; charset=UTF-8"
   jcr:encoding "gzip"

But since this contradicts JSR 170, I would argue that this should not
be done. The preferred alternatives being

   jcr:mimeType "text/plain; charset=UTF-8"
   jcr:encoding <unset>

and

   jcr:mimeType "text/plain"
   jcr:encoding "UTF-8"

Note that this way any content encodings need to be decoded before
storing the content in the jcr:data property.

BR,

Jukka Zitting

Reply via email to