Re: Glib does not print italian character
- From: Giuseppe Penone <giuspen gmail com>
- To: Vlad Volodin <vest 84 gmail com>
- Cc: GTK Lists <gtk-app-devel-list gnome org>
- Subject: Re: Glib does not print italian character
- Date: Mon, 5 Nov 2012 18:10:30 +0100
Thank you very much Vlad,
#include <locale.h>
and
setlocale(LC_ALL, "en_US.utf8");
made the trick.
King regards,
Giuseppe.
On Mon, Nov 5, 2012 at 6:04 PM, Vlad Volodin <vest 84 gmail com> wrote:
Hello Giuseppe,
It seems that you did not setup the locale. I think that the similar issue
was already reviewed in this thread:
http://stackoverflow.com/questions/3092354/printing-utf8-in-glib
Kind regards,
Vest
2012/11/5 Giuseppe Penone <giuspen gmail com>
Hi,
If I compile and run this simple code:
//-----------------------------------------------------------------------------------
// gcc centro.c -o centro `pkg-config --cflags --libs glib-2.0`
#include <stdio.h>
#include <glib.h>
int main(int argc, char *argv[])
{
gchar test[] = "funzionalità";
g_print("%s\n", test);
return 0;
}
//-------------------------------------------------------------------------------
on the terminal I read:
funzionalit?
where à is replaced by ?, can anybody help me to understand the reason?
Thanks in advance,
Giuseppe.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]