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

Tilman Hausherr commented on PDFBOX-2771:
-----------------------------------------

Could you please also add a test, to prevent this from breaking in the future? 
Something like this in testUnicode() in TestCOSString.java:
{code}
        // PDFBOX-2771
        String textEuro =  "€";
        COSString stringEuro = new COSString(textEuro);
        assertEquals(stringEuro.getString(), textEuro);
{code}


> COSString encodes Euro sign wrongly
> -----------------------------------
>
>                 Key: PDFBOX-2771
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2771
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Maruan Sahyoun
>            Assignee: Maruan Sahyoun
>            Priority: Critical
>             Fix For: 2.0.0
>
>
> When setting the value of COSString to the Euro sign the encoding is wrong
> {code}
>     COSString string = new COSString("€");
>     System.out.println(string);
> {code}
> produces this output
> {code}
>     COSString{¬}
> {code}
> whereas the same code using 1.8 produces the correct result
> {code}
>     COSString{€}
> {code}



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