Bug 30983 - The wrong pdf document encoding
Summary: The wrong pdf document encoding
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: 0.15
Hardware: PC other
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-01 07:59 UTC by maco
Modified: 2012-04-01 06:33 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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