[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to do UTF-8?

From: Thomas Dickey
Subject: Re: How to do UTF-8?
Date: Thu, 16 Mar 2006 16:33:59 -0500 (EST)

On Thu, 16 Mar 2006, Pierre Abbat wrote:

On Wednesday 15 March 2006 18:09, Thomas Dickey wrote:
The ncurses test program (see the sources test/ncurses.c) uses setlocale()

It calls setlocale(LC_ALL,""). My LANG is en_US.UTF-8, so I get UTF-8
encoding. I'm going to set up the company I'm writing this for with Putty in
UTF-8, so this doesn't really matter, but how would I handle strings if some
other encoding were in use? I'd like all strings to be stored as UTF-8
internally, regardless of locale.

You'd have to translate the strings - libiconv does that sort of thing.

Thomas E. Dickey

reply via email to

[Prev in Thread] Current Thread [Next in Thread]