Re: wide characters in label
- From: David Nečas <yeti physics muni cz>
- To: jessCPP <hebrerillo hotmail com>
- Cc: gtk-devel-list gnome org
- Subject: Re: wide characters in label
- Date: Wed, 30 May 2012 17:31:52 +0200
This is the wrong mailing list, dedicated to development of Gtk+.
Your e-mail does not contain any question. So I suppose you want to
know why your code is broken.
On Tue, May 29, 2012 at 09:18:38AM -0700, jessCPP wrote:
> setlocale(LC_CTYPE, "UTF-8");
A bit strange and not actually influencing anything else in your code.
> wchar_t wide[]=L"this is wide";
Gtk+ works with UTF-8 encoded strings (i.e. sequences of bytes),
*not* wide characters.
wchar_t is an arbitrary poorly-defined platform-dependent type, making
difficult to write a portable code. Do not use wide characters unless
you have to. And if you have to then convert them to UTF-8 for use with
Gtk+, e.g. using iconv with "WCHAR_T" as the source encoding.
Yeti
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]