> Andrea Vacondio <andrea.vacon...@gmail.com> hat am 10. Juli 2017 um 19:22 
> geschrieben:
> 
> 
> Hi, we came across this case where we are basically cloning outline items
> where the original outline title is a UTF16BE encoded text string
> containing the value 00A0 (non break space). We later use the string to
> assign the title in a new outline item and the A0 is recognised as a € sign.
> Here is a simple test:
> 
>         COSString victim = COSString
>                 .parseHex("FEFF004300680061007000740065007200A0");
>         PDOutlineItem node = new PDOutlineItem();
>         node.setTitle(victim.getString());
> 
> If you look at the node dictionary you'll see that the title value is
> Chapter€
How do you look at the dictionary?

The following code:
COSString victim = COSString.parseHex( "FEFF004300680061007000740065007200A0" );
                        System.out.println( victim.toHexString() );
                        System.out.println( victim.getString() );

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org

Reply via email to