Mismatch charset while executing application on Windows and Wine (Ubuntu)

614 Views Asked by At

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 apps.

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

What we enter: Lößnitzstr

What the other apps see: Lößnitzstr

input output

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 tried 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 not to work

Any idea how to fix this, really appreciate your help.

0

There are 0 best solutions below