[ https://issues.apache.org/jira/browse/TIKA-338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12783136#action_12783136 ]
Peter Wolanin commented on TIKA-338: ------------------------------------ oops - never mind. I was using -encoding=, not --encoding= (missing a dash). > Trying to use -encoding parameter alwyas results in an exception > ---------------------------------------------------------------- > > Key: TIKA-338 > URL: https://issues.apache.org/jira/browse/TIKA-338 > Project: Tika > Issue Type: Bug > Components: cli > Reporter: Peter Wolanin > Fix For: 0.6 > > Original Estimate: 1h > Remaining Estimate: 1h > > There is a logical error in the CLI code - -encoding can never work and > always results in an exception > $ java -jar tika-app/target/tika-app-0.6-SNAPSHOT.jar -encoding=UTF-8 -t > test.txt > Exception in thread "main" java.io.UnsupportedEncodingException: ncoding=UTF-8 > at sun.nio.cs.StreamEncoder.forOutputStreamWriter(StreamEncoder.java:42) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.