Bug 30983

Summary: The wrong pdf document encoding
Product: Fop - Now in Jira Reporter: maco <forevertraveller>
Component: pdfAssignee: fop-dev
Status: CLOSED FIXED    
Severity: normal    
Priority: P3    
Version: 0.15   
Target Milestone: ---   
Hardware: PC   
OS: other   

Description maco 2004-09-01 07:59:29 UTC
I create a xsl-fo file that includes <fo:basic-link /> element and the 
attribute "external-destination" includes the international charchater and the 
normal ascii character.

After rendering, when I place the mouse over the hypertext and the URL is 
displayed. But only the normal ascii character can be displayed right and the 
international character is replaced with the letter "?". Ater I click the url, 
IE tells me that the resource is unavailable.

Not like the content in the word area, the value of the URL is directly 
outputted ater encoded with PDFDocument.ENCODING.

When I open the pdf file with UltraEdit, the infomation of url is shortened.

In file org.apache.fop.pdf.PDFDocument.java,
I change 
 public static final String ENCODING = "ISO-8859-1";
to
 public static final String ENCODING = "UTF-8";

All are OK.

This shows that FOP do not support the international situation competely.Right?
Comment 1 Pascal Sancho 2007-11-20 01:46:43 UTC
Fixed in FOP 0.94 and probably earlier versions

note that an URL with non Ascii characters is not a valid URL
Comment 2 Glenn Adams 2012-04-01 06:33:28 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed