Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken character encoding in HTML export files (via Wine) #3902

davidfoerster opened this issue Oct 4, 2019 · 1 comment


Copy link

commented Oct 4, 2019

I know running Chummer via Wine is not supported officially but I feel (as a software developer myself) this would be a simple fix – maybe in my system configuration rather than Chummer itself.

Describe the bug
When I export a character sheet to an HTML file and open it in a web browser or text editor, the resulting file contains lots of “�” characters (U+FFFD, replacement character) where non-ASCII characters are supposed to be. The issue only occurs only when I run Chummer via Wine on Linux; on Windows (inside a virtual machine) the character encoding is fine.

To Reproduce
Steps to reproduce the behavior:

  1. Open any existing or create a new character
  2. Open the print dialogue, select the language “de-DE” and the template “Shadowrun 5” and export to HTML.
  3. Open the exported HTML file in your favourite web browser.
  4. See various “�“ as early as in the personal stat block.

Expected behavior
Instead of “�” there should be appropriate non-ASCII characters (e. g. “Größe” instead of “Gr��e”) as in the export from Windows.


Desktop (please complete the following information):

  • OS: Wine 4.17 (emulating Windows 7 or Windows 10 – I tested both) using dotnet452 on Ubuntu 18.04 (occurred with earlier Wine versions too if I managed to get Chummer to work at all).
  • Version 5.208.0 (occurred in earlier versions too)

Additional context
It looks like some process tries to transform the data stream from one (restricted, maybe ASCII?) character encoding to another and, failing to find appropriate encodings for non-ASCII characters, replaces unknown characters with the above placeholder. No idea why this occurs on Wine/Linux but now Windows. Maybe Chummer or .NET fail to detect the default system file encoding?

The locale environment doesn’t appear to play a role. I tried de_DE.UTF-8, en_US.UTF-8 and C to no avail.

$ winetricks list-installed
Using winetricks 20180217 - sha256sum: 1b156c616174f41df79d72a90c52eb2b110c63a6e8ecb865d303a8f9f0908924 with wine-4.17 (Staging) and WINEARCH=win32

This comment has been minimized.

Copy link

commented Oct 5, 2019

Chummer writes HTML output to a UTF8 stream, no reason it shouldn't work. Probably wine doing wine things

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.