If it does something different, that is a bug. RFC 3023 is clear. --wunder

On 3/10/07 1:49 PM, "Bertrand Delacretaz" <[EMAIL PROTECTED]> wrote:
> On 3/10/07, Walter Underwood <[EMAIL PROTECTED]> wrote:
>> It is better to use "application/xml". See RFC 3023.
>> Using "text/xml; charset=UTF-8" will override the XML
>> encoding declaration. "application/xml" will not...
> 
> I agree, but did you try this with our example setup, started with
> "java -jar start.jar"?
> 
> It doesn't seem to work here: If I change our example/exampledocs/post.sh to
> use
> 
>    curl $URL --data-binary @$f -H 'Content-type:application/xml'
> 
> instead of
> 
>   curl $URL --data-binary @$f -H 'Content-type:text/xml; charset=utf-8'
> 
> the encoding declaration of my posted XML is ignored, characters are
> interpreted according to my JVM encoding (-Dfile.encoding makes a
> difference in that case).
> 
> Are you seeing something different, or do you know why this is so?
> 
> -Bertrand

Reply via email to