Menu

Wrong character set ArrayListOutputConsumer

2011-04-15
2013-04-30
  • Pierre America

    Pierre America - 2011-04-15

    When using exiftool I had some trouble with "strange" characters (with accents etc.) in the results. Finally I found the source os the trouble: Method ArrayListOutputConsumer.consumeOutput does not specify a character set when creating an InputStreamReader, and therefore (at least on my Mac) a different character set is used than the UTF8 that exiftool uses for its output. For the time being I fixed this by creating my own OutputConsumer that uses UTF8, but would be nicer if this could be fixed in the official im4java release.
    Since I am using im4java only with exiftool, I don't know whether always using UTF8 would work well with other tools.

     
  • Bernhard Bablok

    Bernhard Bablok - 2011-04-16

    Thanks for the hint, this is certainly a problem that should be fixed somehow. I will check this issue and think about a solution for the next release.

    Bernhard

     

Log in to post a comment.