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

Luca Bellonda commented on FOP-3292:
------------------------------------

Hello,

     the PDF 1.4 specification in paragraph 3.2.4 states that bytes of names 
after expansion can be treated as UTF-8 values, so I believe it is legal to 
encode the name by getting the bytes from the name string with UTF-8 encoding 
and encoding the non-ASCII character using the # notation.

 
{quote}“In such situations, it is recommended that the sequence of bytes (after 
expansion

of # sequences, if any) be interpreted according to UTF-8, a variable-length 
byte-

encoded representation of Unicode in which the printable ASCII characters have

the same representations as in ASCII. “
{quote}
 

Best regards.

> Exception thrown when adding a PDF that contains a font name with Japanese 
> characters
> -------------------------------------------------------------------------------------
>
>                 Key: FOP-3292
>                 URL: https://issues.apache.org/jira/browse/FOP-3292
>             Project: FOP
>          Issue Type: Bug
>            Reporter: Joao Goncalves
>            Priority: Major
>         Attachments: attach.pdf, test.fo
>
>
> When testing the FO below, an exception is thrown saying the following:
> {color:#FF0000}Only 8-bit characters allowed by this implementation{color}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to