ststeiger / PdfSharpCore

Port of the PdfSharp library to .NET Core - largely removed GDI+ (only missing GetFontData - which can be replaced with freetype2)
Other
1.04k stars 231 forks source link

Non ascii characters are not correctly displayed when created on Linux (Openshift) #431

Open matbruges opened 3 months ago

matbruges commented 3 months ago

This works correctly on Windows, but when my app is running in Openshift the non-ascii characters (e.g. é, à ², ³ etc) are displayed as empty rectangles.

I use Migradoc with a custom font resolver to load my embedded fonts. I call "new PdfDocumentRenderer(true)" to specify unicode encoding.

In Openshift the default encoding is ascii.. could it be that internally in the PdfSharpCore/Migradoc library there is some processing going on that does not expect the default encoding to be anything other than unicode?