Return-Path: Delivered-To: apmail-lucene-solr-user-archive@locus.apache.org Received: (qmail 56718 invoked from network); 13 Jun 2006 16:05:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Jun 2006 16:05:20 -0000 Received: (qmail 93601 invoked by uid 500); 13 Jun 2006 16:05:19 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 93566 invoked by uid 500); 13 Jun 2006 16:05:19 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 93557 invoked by uid 99); 13 Jun 2006 16:05:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jun 2006 09:05:19 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jun 2006 09:05:16 -0700 Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FqBNw-0006Zj-4D for solr-user@lucene.apache.org; Tue, 13 Jun 2006 09:04:56 -0700 Message-ID: <4849551.post@talk.nabble.com> Date: Tue, 13 Jun 2006 09:04:56 -0700 (PDT) From: Fabio Confalonieri To: solr-user@lucene.apache.org Subject: Re: International Charsets in embedded XML In-Reply-To: <3d2ce8cb0606130809k5d4e55a4h9f7dd09d667dbdf8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: fabio@zero.it X-Nabble-From: Fabio Confalonieri References: <4846383.post@talk.nabble.com> <3d2ce8cb0606130809k5d4e55a4h9f7dd09d667dbdf8@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Klaas-2 wrote: > > Are you sending Content-Type headers with appropriate charset > indicated? Is your xml fully-escpaed in your update message? > ...no, actually I simply make a URLConnection conn = url.openConnection(); conn.setRequestProperty("ContentType", "text/xml"); conn.setDoOutput(true); wr = new OutputStreamWriter(conn.getOutputStream()); wr.write(data); wr.flush(); to post del add xml and my XML is embedded in a CData without further escaping... have I to to something else. I'm getting data from a MySQL db and I found some problems where in retrieving data from there. I've made some step forword connecting to the db with "characterEncodingutf8" in the jdbc URL, and then converting with: new String(mysqlXMLField.getBytes("latin1")); But I'm really not into charsets and encodings... -- View this message in context: http://www.nabble.com/International-Charsets-in-embedded-XML-t1780147.html#a4849551 Sent from the Solr - User forum at Nabble.com.