#include <iostream>
#include <glib.h>
#include <string.h>
int main() {
char * a="Télécommande";
a = (char *) g_utf8_strup((const gchar*) a, strlen(a));
std::cout << a << std::endl;
}
compile with :
g++ `pkg-config --cflags --libs gib-2.0` s.cpp
Output of the above program:
TÉLÉCOMMANDE
If the library is not present install libglib2.0-dev
http://www.gnu.org/software/guile-gnome/docs/glib/html/Unicode-Manipulation.html