hacioguz / kochief

Automatically exported from code.google.com/p/kochief
GNU General Public License v3.0
0 stars 0 forks source link

CSV file gets streamed into Solr with weird encoding #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Seeing this with a default Solr 1.4 example directory, using the built-in
Jetty container. I'm on Mac OS 10.6. Despite output of the custom CSV
writer dumping in UTF-8 the file is seemingly being streamed as MacRoman

Original issue reported on code.google.com by mark.matienzo on 15 Apr 2010 at 6:29

GoogleCodeExporter commented 8 years ago
Potential fix: 
http://www.mail-archive.com/solr-user@lucene.apache.org/msg05541.html

Long story short work around is to add another parameter to the servlet 
container:
-Dfile.encoding=UTF-8 

See hossman's followup on solr-user about why this seems weird, but I can 
confirm
that it fixes it for me. Not sure of implications of modifying solr-init to set 
this
explicitly.

Original comment by mark.matienzo on 15 Apr 2010 at 6:31

GoogleCodeExporter commented 8 years ago
This issue was closed by revision d7bb2f9118.

Original comment by mark.matienzo on 15 Apr 2010 at 7:11