I have changed /etc/profile.d/lang.sh to include:
export lang=en_US.UTF-8
Here is my local:
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
and my .bash_profile for GTK+-2.4 Specific include:
G_FILENAME_ENCODING=@local
export G_FILENAME_ENCODING
while I try ro save any html file in firefox, it occurs an error:
Code:
invalid file name
Conversion from character set 'UTF-8' to '@local' is not supported
How could I modify 'G_FILENAME_ENCODING=@local' to fix the error?
According to faq, I may as well 'change the default terminal font to a Unicode one'? how can I do it? thanks.
Quote:
Does Slackware use UTF-8 (Unicode)?
By default, UTF-8 is disabled in Slackware for greater backwards compatibility with programs that do not yet support it.
To enable it, edit /etc/profile.d/lang.sh and add:
export LANG=en_GB.UTF-8
Where en_GB is whatever language you use.
Be aware, you will also probably need to change the default terminal font to a Unicode one, and you're going to have to rename any directories or files that use characters from the ISO 8859-* sets that are not part of the 'core' ASCII characters - e.g. any accented characters. GTK2 and QT based programs should be fine, as well as any that call directly XFT.
Also, the console support for unicode is rather poor at the moment, it's more useful in X. There are also other problems associated with Unicode (evaultions in scripts, etc) that you should be aware of before switching.
man requires you to use an alias to work properly (otherwise it displays very strange characters):
alias man='LC_ALL=C man'
This code can be adapted as need be
|