[SOLVED] Re: Character Set trouble + KDE setup games
On Sat, May 18, 2002 at 02:13:07AM +0100, Colin Watson wrote:
> On Fri, May 17, 2002 at 06:04:17PM -0700, Ross Boylan wrote:
> > I am seeing the ? character instead of actual accented characters in
> > mail I get, even if it has
> > Content-Type: text/plain;
> > charset="iso-8859-1"
>
> You might want to try adjusting your $LC_CTYPE to something with the
> ISO-8859-1 character set. (I use LC_CTYPE=en_GB.ISO-8859-1, for
> example.) On woody/sid, you'll also need to generate any extra locales
> you use with 'dpkg-reconfigure locales'.
>
Thanks to Eric and Colin's advice, I solved the problem. Here are a
few notes for those who follow, including some KDE oddities.
My system was set with en_US.ISO-8859-1 defined in locales, but C as
my default.
Simply saying
export LANG=en_US
in a KDE Konsole and then running mutt was sufficient to get the
characters to show up properly.
But that's not automatic, and hardly a learning experience! So first I ran
dpkg-reconfigure locales
and changed to en_US.ISO-8859-1 as my default.
This had no observeable effect. (I did discover a small bug in
locales that the latest debian release has fixed, by the way. It's in
the postinst script).
Then I read the KDE docs, and attempted to reset the default LANG in
the control center. However, C was the only choice it would show me.
Even after all the steps below, and restarting KDE, this is still the
only choice.
Then I decided to find out how to reset the environment variables in
KDE. I ended up adding a file to /etc/X11/Xsession.d/ (sequence #60):
export LANG=en_US
if [ -e $HOME/.bashrc ] ; then
. $HOME/.bashrc
fi
I've wondered for quite awhile how to get environment variable
setttings into my KDE session, and this takes care of that.
By the way, KDE says editing the setting in the control center is
preferred, but, since it didn't work.....
I restarted KDE, and all was well.
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: