Re: Convert a text



Hi,

Emmanuel Di Pretoro <edipreto skynet be> writes:

> Probably a newbie question.
> So, I've created a little front-end in GTK2 to a posgresql database.
> When I insert character like 'é', 'è', etc, the result in the database
> is like à 
> 
> What can I do to correct that ?

feed it with UTF-8 and nothing but UTF-8. If you need to deal with
strings in other encodings, use the conversion functionality offered
by GLib-2.x:

 http://developer.gnome.org/doc/API/2.0/glib/glib-Character-Set-Conversion.html


Salut, Sven




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