[jira] Created: (TIKA-338) Trying to use -encoding parameter alwyas results in an exception

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (TIKA-338) Trying to use -encoding parameter alwyas results in an exception

JIRA jira@apache.org
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



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.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (TIKA-338) Trying to use -encoding parameter alwyas results in an exception

JIRA jira@apache.org

    [ 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.

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (TIKA-338) Trying to use -encoding parameter alwyas results in an exception

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/TIKA-338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Wolanin closed TIKA-338.
------------------------------

    Resolution: Invalid

> 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.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (TIKA-338) Trying to use -encoding parameter alwyas results in an exception

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/TIKA-338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting updated TIKA-338:
-------------------------------

    Fix Version/s:     (was: 0.6)

> 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
>   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.