Locale codeset UTF-8 vs. utf8

Michael Schwendt mschwendt at gmail.com
Thu Jun 5 09:57:09 UTC 2008


On Thu, 05 Jun 2008 11:32:03 +0200, Martin Sourada wrote:

> Sounds sane, though I faced very similar problem with Evolution some
> time back, when my e-mail written in Czech (with diacritic marks) was
> delivered broken - because only Evolution was able to tell what utf8
> charset actually is... Of course, manually setting it to UTF-8 fixed the
> issue... I wondered whether the problem was due to wrong setting after
> upgrading to Fedora 9 or something else, but I didn't pursued the issue
> further.

What I remember is that "utf8" and "UTF-8" are equivalent when
setting the locale, but internally the codeset is "UTF-8" only.
The list of supported values is returned by

  $ locale -m|grep -i utf
  UTF-8

which is what to use in string-comparison after querying nl_langinfo(CODESET).




More information about the fedora-devel-list mailing list