LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-07-2007, 10:48 AM   #1
edgjerp
Member
 
Registered: Dec 2004
Location: Trondheim, Norway
Distribution: kubuntu 10.04
Posts: 308

Rep: Reputation: 31
setting default encoding


I just changed from mandriva to kubuntu, and have some problems with encoding. I read my mail on a remote server, using ssh. where can I set that I want ISO8859-1 as character encoding? every time I log in, I have to change this in konsole settings. is there a place I can change this globally?
 
Old 05-07-2007, 11:35 AM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Have you tried “sudo dpkg-reconfigure locales”
 
Old 05-08-2007, 12:45 AM   #3
edgjerp
Member
 
Registered: Dec 2004
Location: Trondheim, Norway
Distribution: kubuntu 10.04
Posts: 308

Original Poster
Rep: Reputation: 31
This is close to the right approach, but I have no interactivity, I just see this:
Code:
Generating locales...
  en_AU.UTF-8... up-to-date
  en_BW.UTF-8... up-to-date
  en_CA.UTF-8... up-to-date
  en_DK.UTF-8... up-to-date
  en_GB.UTF-8... up-to-date
  en_HK.UTF-8... up-to-date
  en_IE.UTF-8... up-to-date
  en_IN.UTF-8... up-to-date
  en_NZ.UTF-8... up-to-date
  en_PH.UTF-8... up-to-date
  en_SG.UTF-8... up-to-date
  en_US.UTF-8... up-to-date
  en_ZA.UTF-8... up-to-date
  en_ZW.UTF-8... up-to-date
Generation complete.
what do I need to do to be able to change settings?

Last edited by edgjerp; 05-08-2007 at 01:45 AM.
 
Old 05-08-2007, 01:57 AM   #4
edgjerp
Member
 
Registered: Dec 2004
Location: Trondheim, Norway
Distribution: kubuntu 10.04
Posts: 308

Original Poster
Rep: Reputation: 31
Code:
 LANG="ISO8859-1"
to /etc/environment, will that fix things?
I would either add this, or possibly replace the three occurrences of LANG="en_US.UTF-8" in the file
 
Old 05-08-2007, 10:56 AM   #5
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
I’m sorry, somehow I thought the previous command would be interactive…

Editing /etc/environment is a good idea too. If possible, edit not only “LANG”, but also any variable that starts with “LC_” (if and only if such a variable exists) — e.g., LC_COLLATE, LC_CTYPE, LC_MESSAGES, LC_MONETARY, LC_NUMERIC, LC_TIME, LC_ALL. Notice that these effects will not be instantaneous. If you want to run under a different locale immediately, try this in a shell:
Code:
$ LANG="ISO8859-1" LC_ALL="ISO8859-1" my_program
 
Old 05-08-2007, 04:11 PM   #6
edgjerp
Member
 
Registered: Dec 2004
Location: Trondheim, Norway
Distribution: kubuntu 10.04
Posts: 308

Original Poster
Rep: Reputation: 31
all my environment file contained, was 3 copies of the line with UTF8, and the settings for PATH.
What will I need to do to force my system to reread (and act upon) the new settings globally?

Last edited by edgjerp; 05-08-2007 at 04:12 PM.
 
  


Reply



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
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
Changing encoding- Setting an environment variable.. rixride00 Programming 1 04-20-2004 03:25 AM
Default Xfree86 font encoding produkc Linux - General 3 09-02-2002 02:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:19 AM.

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
Open Source Consulting | Domain Registration