From: Jonathan Nieder Date: Mon, 30 Aug 2010 14:09:58 GMT Subject: Re: Odd encoding issue with UTF-8 + gettext yields ? on non-ASCII Message-ID: <20100830140958.GE2315@burratino> In-Reply-To: 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?