You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2007/03/21 10:24:32 UTC
[jira] Created: (SOLR-194) SimplePostTool incorrectly uses the
current JVM encoding to read files
SimplePostTool incorrectly uses the current JVM encoding to read files
----------------------------------------------------------------------
Key: SOLR-194
URL: https://issues.apache.org/jira/browse/SOLR-194
Project: Solr
Issue Type: Bug
Components: clients - java
Reporter: Bertrand Delacretaz
Priority: Minor
Using
java -Dfile.encoding=iso-8859-1 -jar post.jar http://localhost:8983/solr/update utf8-example.xml
posts incorrect data, apparently utf8-example.xml is read using the JVM's encoding.
As a workaround before we fix this, use
java -Dfile.encoding=UTF-8 -jar post.jar http://localhost:8983/solr/update utf8-example.xml
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SOLR-194) SimplePostTool uses hardcoded UTF-8
encoding to read files
Posted by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shalin Shekhar Mangar resolved SOLR-194.
----------------------------------------
Resolution: Fixed
Per the comments above, this issue has been fixed already.
> SimplePostTool uses hardcoded UTF-8 encoding to read files
> ----------------------------------------------------------
>
> Key: SOLR-194
> URL: https://issues.apache.org/jira/browse/SOLR-194
> Project: Solr
> Issue Type: Bug
> Components: clients - java
> Reporter: Bertrand Delacretaz
> Priority: Minor
> Attachments: post.jar
>
>
> Using
> java -Dfile.encoding=iso-8859-1 -jar post.jar http://localhost:8983/solr/update utf8-example.xml
> posts incorrect data, apparently utf8-example.xml is read using the JVM's encoding.
> As a workaround before we fix this, use
> java -Dfile.encoding=UTF-8 -jar post.jar http://localhost:8983/solr/update utf8-example.xml
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SOLR-194) SimplePostTool uses hardcoded UTF-8
encoding to read files
Posted by "Bertrand Delacretaz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bertrand Delacretaz updated SOLR-194:
-------------------------------------
Attachment: post.jar
Includes the fix of revision 520817
> SimplePostTool uses hardcoded UTF-8 encoding to read files
> ----------------------------------------------------------
>
> Key: SOLR-194
> URL: https://issues.apache.org/jira/browse/SOLR-194
> Project: Solr
> Issue Type: Bug
> Components: clients - java
> Reporter: Bertrand Delacretaz
> Priority: Minor
> Attachments: post.jar
>
>
> Using
> java -Dfile.encoding=iso-8859-1 -jar post.jar http://localhost:8983/solr/update utf8-example.xml
> posts incorrect data, apparently utf8-example.xml is read using the JVM's encoding.
> As a workaround before we fix this, use
> java -Dfile.encoding=UTF-8 -jar post.jar http://localhost:8983/solr/update utf8-example.xml
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SOLR-194) SimplePostTool uses hardcoded UTF-8
encoding to read files
Posted by "Bertrand Delacretaz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bertrand Delacretaz updated SOLR-194:
-------------------------------------
Summary: SimplePostTool uses hardcoded UTF-8 encoding to read files (was: SimplePostTool incorrectly uses the current JVM encoding to read files)
> SimplePostTool uses hardcoded UTF-8 encoding to read files
> ----------------------------------------------------------
>
> Key: SOLR-194
> URL: https://issues.apache.org/jira/browse/SOLR-194
> Project: Solr
> Issue Type: Bug
> Components: clients - java
> Reporter: Bertrand Delacretaz
> Priority: Minor
>
> Using
> java -Dfile.encoding=iso-8859-1 -jar post.jar http://localhost:8983/solr/update utf8-example.xml
> posts incorrect data, apparently utf8-example.xml is read using the JVM's encoding.
> As a workaround before we fix this, use
> java -Dfile.encoding=UTF-8 -jar post.jar http://localhost:8983/solr/update utf8-example.xml
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SOLR-194) SimplePostTool incorrectly uses the
current JVM encoding to read files
Posted by "Bertrand Delacretaz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482690 ]
Bertrand Delacretaz commented on SOLR-194:
------------------------------------------
The above problem is fixed in revision 520817 by hardcoding the UTF-8 encoding to read files.
We'll need to use a the XML parser to read these files cleanly, especially once SOLR-190 is fixed.
> SimplePostTool incorrectly uses the current JVM encoding to read files
> ----------------------------------------------------------------------
>
> Key: SOLR-194
> URL: https://issues.apache.org/jira/browse/SOLR-194
> Project: Solr
> Issue Type: Bug
> Components: clients - java
> Reporter: Bertrand Delacretaz
> Priority: Minor
>
> Using
> java -Dfile.encoding=iso-8859-1 -jar post.jar http://localhost:8983/solr/update utf8-example.xml
> posts incorrect data, apparently utf8-example.xml is read using the JVM's encoding.
> As a workaround before we fix this, use
> java -Dfile.encoding=UTF-8 -jar post.jar http://localhost:8983/solr/update utf8-example.xml
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.