[H-GEN] UTF-8 vs ISO-8859-1
Troy Piggins
troy at piggo.com
Fri Jun 23 00:42:11 EDT 2006
* Ted Percival <ted at midg3t.net> :
>
> Troy Piggins wrote:
> > Further to this, I can find no way to change to ISO-8859-1 if I
> > wanted to. Seems to be a common Dapper problem from my
> > google/ubuntuforums searches so far.
>
> Try `dpkg-reconfigure locales` (as root) and enable en_AU.ISO-8859-1.
> You should then be able to use it.
$ sudo dpkg-reconfigure locales
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.
Current default timezone: 'Australia/Brisbane'.
Local time is now: Fri Jun 23 14:20:50 EST 2006.
Universal Time is now: Fri Jun 23 04:20:50 UTC 2006.
Run 'tzconfig' if you wish to change it.
> If there's a problem changing it after that, check that it's not being
> forced in /etc/environment.
$ cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games"
LANG="en_AU.UTF-8"
LANGUAGE="en_AU:en"
### BEGIN DEBCONF SECTION FOR localeconf
# Do not edit within this region if you want your changes to be preserved
# by debconf. Instead, make changes before the "### BEGIN DEBCONF SECTION
# FOR localeconf" line, and/or after the "### END DEBCONF SECTION FOR
# localeconf" line.
### END DEBCONF SECTION FOR localeconf
$ LANG="en_AU.ISO-8859-1"
$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or
directory
locale: Cannot set LC_MESSAGES to default locale: No such file or
directory
locale: Cannot set LC_ALL to default locale: No such file or
directory
LANG=en_AU.ISO-8859-1
LANGUAGE=en_AU:en
LC_CTYPE="en_AU.ISO-8859-1"
LC_NUMERIC="en_AU.ISO-8859-1"
LC_TIME="en_AU.ISO-8859-1"
LC_COLLATE="en_AU.ISO-8859-1"
LC_MONETARY="en_AU.ISO-8859-1"
LC_MESSAGES="en_AU.ISO-8859-1"
LC_PAPER="en_AU.ISO-8859-1"
LC_NAME="en_AU.ISO-8859-1"
LC_ADDRESS="en_AU.ISO-8859-1"
LC_TELEPHONE="en_AU.ISO-8859-1"
LC_MEASUREMENT="en_AU.ISO-8859-1"
LC_IDENTIFICATION="en_AU.ISO-8859-1"
LC_ALL=
> As a final method, you could recursively grep /etc or dotfiles in your
> home directory for 'en_AU'.
$ sudo grep -r -e en_AU /etc
grep: /etc/alternatives/vi: No such file or directory
grep: /etc/alternatives/ex: No such file or directory
/etc/environment:LANG="en_AU.UTF-8"
/etc/environment:LANGUAGE="en_AU:en"
/etc/environment.localeconf-backup:LANG="en_AU.UTF-8"
/etc/environment.localeconf-backup:LANGUAGE="en_AU:en"
Seems like there is a package that needs to be installed, but I
can't find it.
$ sudo grep -r -e ISO-8859-1 /etc
Binary file /etc/alternatives/pager matches
grep: /etc/alternatives/vi: No such file or directory
grep: /etc/alternatives/ex: No such file or directory
Binary file /etc/alternatives/www-browser matches
Binary file /etc/alternatives/xdvi.bin matches
/etc/locale.alias:bokmal nb_NO.ISO-8859-1
/etc/locale.alias:bokm�l nb_NO.ISO-8859-1
/etc/locale.alias:catalan ca_ES.ISO-8859-1
/etc/locale.alias:danish da_DK.ISO-8859-1
/etc/locale.alias:dansk da_DK.ISO-8859-1
/etc/locale.alias:deutsch de_DE.ISO-8859-1
/etc/locale.alias:dutch nl_NL.ISO-8859-1
/etc/locale.alias:eesti et_EE.ISO-8859-1
/etc/locale.alias:estonian et_EE.ISO-8859-1
/etc/locale.alias:finnish fi_FI.ISO-8859-1
/etc/locale.alias:fran�ais fr_FR.ISO-8859-1
/etc/locale.alias:french fr_FR.ISO-8859-1
/etc/locale.alias:galego gl_ES.ISO-8859-1
/etc/locale.alias:galician gl_ES.ISO-8859-1
/etc/locale.alias:german de_DE.ISO-8859-1
/etc/locale.alias:icelandic is_IS.ISO-8859-1
/etc/locale.alias:italian it_IT.ISO-8859-1
/etc/locale.alias:lithuanian lt_LT.ISO-8859-13
/etc/locale.alias:no_NO nb_NO.ISO-8859-1
/etc/locale.alias:no_NO.ISO-8859-1 nb_NO.ISO-8859-1
/etc/locale.alias:norwegian nb_NO.ISO-8859-1
/etc/locale.alias:nynorsk nn_NO.ISO-8859-1
/etc/locale.alias:portuguese pt_PT.ISO-8859-1
/etc/locale.alias:spanish es_ES.ISO-8859-1
/etc/locale.alias:swedish sv_SE.ISO-8859-1
/etc/apache2/apache2.conf:#AddDefaultCharset ISO-8859-1
/etc/apache2/apache2.conf:AddCharset ISO-8859-1 .iso8859-1 .latin1
/etc/php5/apache2/php.ini:;mssql.charset = "ISO-8859-1"
/etc/php5/apache2/php.ini:;exif.encode_unicode = ISO-8859-15
I'm lost.
See the /etc/locale.alias:francais above? Where the 'c' is in
francais I see a box instead of the character (I know it's not
really a 'c' but can't remember what it's called).
--
Troy Piggins
,-o Ubuntu v6.06 (Dapper Drake): kernel 2.6.15-25-server,
o ) postfix 2.2.10, procmail 3.22, mutt 1.5.11i,
`-o slrn 0.9.8.1/rt (score_color patch), vim 7.0
More information about the General
mailing list