Re: Odd encoding issue with UTF-8 + gettext yields ? on non-ASCII
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Aug 30, 2010, 14:09 UTC
- Message-ID
- <20100830140958.GE2315@burratino>
- In-Reply-To
- <alpine.BSF.2.00.1008301353260.95618@x.fncre.vasb>
Marcin Cieslak wrote:
> Well, in this case everybody will be force to have UTF-8 in output > on-screen, not useful for people using ISO8859-*, KOI8-R and similar > things...
Can't we do:
setlocale(LC_CTYPE, ""); charset = nl_langinfo(CODESET); setlocale(LC_CTYPE, "C");
to allow an arbitrary character set?