Problem with accented characters
Closed this issue · 0 comments
Hermanverschooten commented
Before the recent changes accented characters were working.
In commit 483fb1d, this
Pdf.open([compress: false],fn pdf -> pdf |> Pdf.set_font("Helvetica", 8) |> Pdf.text_at({100,100}, "ö") |> Pdf.write_to("tmp/t.pdf") end)
would result in this block being written:
BT
/F1 8 Tf
100 100 Td
(ö) Tj
ET
But now it has become:
BT
/F1 8 Tf
100 100 Td
(ö) Tj
ET
In the old version 0xF6 was written, in the new version 0xC3B6.
The change you made to Pdf.Text.normalize_string/1
now always returns a unicode string, instead of a charlist
, but we are not encoding unicode.