arcanistzed / pdf-sheet

A system agnostic tool to export your Foundry character sheet to a PDF!
https://arcanist.me
MIT License
14 stars 58 forks source link

[Bug]: Special characters in mapping becomes garbled #130

Open tbergstedt opened 2 months ago

tbergstedt commented 2 months ago

Expected Behavior

I am using the Dragonbane system (Swedish version), to which there currently is no support within this module so I am working with custom mapping for now. I want the PDF fields to be named according to their Swedish names, but instead the field names from the PDF becomes garbled.

Current Behavior

When using Swedish letters ÅÄÖåäö in PDF fields (and I suspect any other, "non-english" letter), they are not correctly displayed in the Export Pdf dialogue, but instead using strange encodings, such as "#C3#85lder" instead of "Ålder"

Steps to Reproduce

  1. Create PDF field. Use special (e.g. Swedish) letters in field name
  2. Choose Export to PDF within Foundry.
  3. Choose the PDF with Swedish characters to export to.

Context

image Two examples of current behaviour. Top row says "Släkte" (= "Kin") where I tried to use xml character code. The lower is "Ålder" (= "Age"), unchanged.

Version

0.24.9

Foundry VTT Version

12 build 331

Operating System

Windows

Browser / App

Native Electron App

Game System

Dragonbane / Custom

Modules Disabled