W3C home > Mailing lists > Public > www-international@w3.org > January to March 1998

Re: charset and language of C strings?

From: Erik van der Poel <erik@netscape.com>
Date: Fri, 06 Mar 1998 16:33:20 -0800
Message-ID: <350095D0.D6CDD236@netscape.com>
To: Bill Janssen <janssen@parc.xerox.com>
CC: www-international@w3.org, gregor.erbach@dfki.de
Bill Janssen wrote:

> I'm trying to convert from a stored string with known format (both
> language and charset known) to a C string in an application.  I've got
> to be able to identify what charset and language is expected by the C
> programming environment, not by the text which I have.

There are many "C programming environments". For example, if you have a Greek
string, you probably want to use CP1253 on Greek Windows 95, but you want to
use ISO 8859-7 on Unix, and MacGreek on Mac. Which "C programming environment"
are you targetting? setlocale will work for Unix, but not the others.

Received on Friday, 6 March 1998 19:33:44 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 21 September 2016 22:37:18 UTC