Skip to content

Bug when exporting page with Polish characters to PDF #625

@fmakowski

Description

@fmakowski
  • BookStack Version: v0.18.5
  • PHP Version: php:7.1.10-apache (I guess? I am using solidnerd/docker-bookstack)
  • MySQL Version: 5.7.20
Expected Behavior

When I export a file to PDF, the UTF-8 coding is preserved and I can see Polish chatacters.

Just like on the site:

1-original-on-site

Current Behavior

When I export a file to PDF, and it consists of language-specific characters (śćńąę etc.), there will be ? instead:

2-export-to-pdf

The issue is not present when exporting to HTML or to text file:

4-export-to-html
3-export-to-txt

Steps to Reproduce
  1. Create a page with the following title and contents:

    Just tęśtińg Półish chąraćters
    Iń thę ćóntęnt ąś węłł.

  2. Export to PDF.

Additional comments

I have checked other PDF viewers - they are not the reason it looks that way.

Also, interestingly, "ó" is parsed properly (but maybe it's included in a character set that is somehow more compatible with the standard one).

I would also rule out the font, as each document is using the same one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions