I copied those accented words directly from web pages in Google Chrome on a Windows PC, but then copied them to a text file as well, so their encoding is dubious. You will have to make sure to use accented characters for UTF-8 in your environment. And... make sure that you are using an editor that is not mangling the encodings.

I just tried a test where I copied the text from your email response and added the XML header line you used, and it posted fine to Solr, but I am running Solr 4.3. I used vi under Cygwin for the editing.

-- Jack Krupansky

-----Original Message----- From: jignesh
Sent: Tuesday, May 28, 2013 11:30 AM
To: solr-user@lucene.apache.org
Subject: Re: Not able to search Spanish word with ascent in solr

Hello Jack

Thanks for your reply..

I have tried to add below contents to solr, as you suggest

-------------
<add>
 <doc>
   <field name="id">doc-1</field>
   <field name="name">Hola Mañana en le Café, habla el Académie
française!</field>
 </doc>
</add>
--------------

BUT I am getting below error
------------------------------------------
I:\Program
Files\EasyPHP-5.3.9\www\solr\apache-solr-3.6.2\example\exampledocs>java -jar
post.jar hd.xml
SimplePostTool: version 1.4
SimplePostTool: POSTing files to http://localhost:8983/solr/update..
SimplePostTool: POSTing file hd.xml
SimplePostTool: FATAL: Solr returned an error #400 Invalid UTF-8 middle byte
0x6e (at char #916, byte #-1)
------------------------------------------

I have also added
------
<?xml version="1.0" encoding="UTF-8"?>
-------

And then submit doc to solr

Please guide....





--
View this message in context: http://lucene.472066.n3.nabble.com/Not-able-to-search-Spanish-word-with-ascent-in-solr-tp4064404p4066537.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to