first, u should escape some string like (code by php) > function escapeChars($string) { > $string = str_replace("&", "&", $string);
$string = str_replace("<", "<", $string); $string = str_replace(">", ">", $string); $string = str_replace("'", "'", $string); $string = str_replace('"', """, $string); return $string; } second, u get xml(encode by utf-8) third, post it by utf-8(head string "Content-Type: text/xml;charset=utf-8") if u don't know how to, maybe u can check solr client(u can find it in solr's wiki) Good Luck~ On Fri, Sep 19, 2008 at 4:33 PM, 李学健 <[EMAIL PROTECTED]> wrote: > hi, all > > when i post xml files to solr, it's interrupted by this: Illegal character > > how can i deal with it ? > > is there any solution to ignore Illegal character in documents feeded ? > > > thanks > -- regards j.L