2006/9/23, Walter Underwood <[EMAIL PROTECTED]>:
No sepcial curl command i use.just solr-nightly/example/exampledocs post.sh.
but my jl.xml encoded utf-8(i use editplus, i tried to use xml encoding utf 8, but it is not effect).
solrphp i use curl "$header=array("Content-Type: text/xml;charset=utf-8");curl_setopt($ch, CURLOPT_HTTPHEADER, $header);", this is php.
see attachments, anything you need mail me.
On 9/21/06 5:37 PM, "James liu" <[EMAIL PROTECTED]> wrote:
> Yes,it working. the root of my problem is xml muse be encoded by utf-8.
> if use php,it not about www browser. just notice that
> curl header information must be utf-8.
> if use post.sh,xml muse be encoded by utf-8.(my editplus default encode
> style is ansi)
This might be a Solr bug. Solr should be able to accept XML in any
of the required encodings (ASCII, Latin 1, UTF-8, and UTF-16).
Getting XML content types exactly right is tricky, see RFC 3023.
What curl command line was used?
No sepcial curl command i use.just solr-nightly/example/exampledocs post.sh.
but my jl.xml encoded utf-8(i use editplus, i tried to use xml encoding utf 8, but it is not effect).
What encoding is the XML?
Can you give a sample XML file?
see attachments, anything you need mail me.
wunder
--
Walter Underwood
Search Guru, Netflix
--
regards
jl
<add> <doc> <field name="id">111</field> <field name="content">å§åæ¯åå¹³</field> </doc> <doc> <field name="id">112</field> <field name="content">å§åæ¯å°ç</field> </doc> <doc> <field name="id">113</field> <field name="content">èå©ä¸å¨å®¶</field> </doc> <doc> </add>