[ 
https://issues.apache.org/jira/browse/PDFBOX-3044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14969603#comment-14969603
 ] 

Ben McCann commented on PDFBOX-3044:
------------------------------------

To demonstrate the problem, here's what happens when you try to diff two of 
these files:

{code}
$ diff pdfbox/src/test/resources/input/hello3.pdf.txt 
pdfbox/src/test/resources/input/rotation.pdf.txt
Binary files pdfbox/src/test/resources/input/hello3.pdf.txt and 
pdfbox/src/test/resources/input/rotation.pdf.txt differ
{code}

If you convert to utf8 then you can use diff tools. The issue here is that I'm 
working on PDFTextStripper, but I can't easily tell if I've improved or 
worsened the results because I can't diff the before and after results.

> Test files character encoding
> -----------------------------
>
>                 Key: PDFBOX-3044
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3044
>             Project: PDFBox
>          Issue Type: Bug
>            Reporter: Ben McCann
>
> The files in pdfbox/src/test/resources/input all seem to be UTF16 encoded. 
> I'm having a really difficult time using these files with the tools that I 
> typically use (git, meld, etc.)  Would it be possible to change the encoding 
> to UTF8?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to