Skip to content

Problems for printing UTF-8 characters on footer/ header #108

@newpen

Description

@newpen

I am now generating PDF with Chinese characters on both its header and footer:

$title = '中文字';

$options = array(       
        'encoding' => 'UTF-8',  // option with argument
        'header-left' => $title,        
        'footer-html' => 'footer.html',     
        'replace' => array(
            'title' =>$title
        ),
    );

Currently, the header can print out the characters fine, but for the footer, that I include an external html file for it and pass it through replace, the characters printed out becomes unrecognizable.

I already have
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
inside the head tag of my footer.html file. How can I solve this? Thank you very much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions