Use a different character set for a specific program on wine

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
shabiel
Newbie
Newbie
Posts: 1
Joined: Tue Aug 03, 2010 3:58 pm

Use a different character set for a specific program on wine

Post by shabiel »

There is a feature in Windows where you tell it (in Regional and Language Settings in XP, e.g.) to use a specific encoding for non-Unicode programs.

That's my issue. I am storing Arabic using cp1256/windows-1256 in a remote database. This is not Unicode; Arabic characters are stored in the 128-255 range of extended ASCII. The program (an electronic health records program) will display garbage by default if you don't set the encoding correctly in which to represent the data. If you set the encoding correctly, you see meaningful Arabic.

What wine currently does is that it displays the data in ISO-8856-1 encoding (my best guess from what I am seeing).

Here's the Question: How can you tell wine to use a specific character set for a non-Unicode enabled program?

I searched online and on this website and couldn't find an answer. So I am posting here.

Sam
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Use a different character set for a specific program on

Post by vitamin »

shabiel wrote:Here's the Question: How can you tell wine to use a specific character set for a non-Unicode enabled program?
You can't choose a specific encoding. What you can do is to set locale that uses your encoding. Ex:

Code: Select all

LANG=en_US.UTF-8 wine winecfg
Will set English locale and make Wine use cp1252 as default code-page.
Locked