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.
wunder On 3/10/07 12:39 PM, "Bertrand Delacretaz" <[EMAIL PROTECTED]> wrote: > On 3/10/07, Morten Fangel <[EMAIL PROTECTED]> wrote: > >> ...I send a document like the following: >> >> --- >> <?xml version="1.0" encoding="UTF-8"?>... > > I assume you're using your own code to "send" the document? > > Currently you need to include a "Content-type: text/xml; > charset=UTF-8" header in your HTTP POST request, and (as you're doing) > the XML needs to be encoded in UTF-8. > > See the source code of > src/java/org/apache/solr/util/SimplePostTool.java for example. > > -Bertrand