Mismatch charset running application on Windows and Wine (Ubuntu)

Questions about Wine on Linux
Locked
hungbv
Newbie
Newbie
Posts: 1
Joined: Mon Mar 28, 2022 11:21 pm

Mismatch charset running application on Windows and Wine (Ubuntu)

Post by hungbv »

We have a small exe client application that used for loading the scanned images from the remote sources, what we need to do is enter the address from the images to specific text box and submit.
The data then will be saved in remote database and will be read by another app.

When we run the client application on Windows then everything is normal. The problem only happen when we run application on Ubuntu via Wine.
Whether we input the address that contain German character, the other app will read from database the wrong character, for example:

What we enter:
Lößnitzstr

What the other apps see:
Lößnitzstr

More detail on attached photos. We found out this is mismatch charset when encoding with UTF-8 and decode with Windows-1252 code page.

Since the default charset of Ubuntu is UTF-8, we try to use command line to force WINE to run with windows charset setting:

LANG=de_DE.CP1252 wine client.exe

We also tried to set Operating system default locale by localectl to language with charset Windows-1252 (CP1252) but it seem like not to work

Image

Wine version 7.0
Linux version Ubuntu 20.04

Any idea how to fix this, really appreciate your help.
Attachments
Output.png
Input.png
Locked