LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-19-2008, 08:32 AM   #1
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 622

Rep: Reputation: 31
default encoding


Hi,
I want to change the default encoding,

I want to use cp1256, instead of the default utf8.

The reason, I run a windows application ( developped in delphi, via wine ) which uses cp1256 (I suppose that), the display of french characters namely ..., is not correct. So I think by changing the encoding I'll fix the problem.

thanks for help
bela


best regards
 
Old 11-19-2008, 09:15 AM   #2
stuart_cherrington
Member
 
Registered: Aug 2008
Location: Get back in your Cube Unix Boy!
Distribution: rh5, oel5, debian etch, solaris
Posts: 228

Rep: Reputation: 36
When you start the application you mayneed to change the Shell's default LANG variable. If you run 'env | grep -i lang' this will tell you what language you're currently using.

Stuart.
 
Old 11-19-2008, 09:26 AM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,837

Rep: Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987
Don't change the default encoding of your whole system. When you need to run the one wine program, simply run it in a shell that's been set with the language you want. Just run "export LANG=cp1256" (assuming that's the appropriate encoding) first and anything run in that shell session will have that language encoding. I've done the same thing for a Japanese-language Windows program I use and it works for me.

After you've ensured that it works, you can then set up a simple shell script to start the program with a single command or launcher shortcut.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setting default encoding edgjerp Linux - Software 5 05-08-2007 04:11 PM
Want default encoding for Lame in Grip kaega2 Linux - Software 5 12-26-2005 03:08 PM
Change default character encoding alepou192 Ubuntu 2 05-23-2005 04:56 AM
how to change the default encoding zhebincong Linux - Newbie 2 07-14-2004 04:16 AM
Default Xfree86 font encoding produkc Linux - General 3 09-02-2002 02:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration