Re: g_locale_to_utf8() chokes on =?iso-8859-1?q?'=F6'?=
- From: Chris Martin <c martin sheffield ac uk>
- To: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: g_locale_to_utf8() chokes on 'ö'
- Date: Thu, 26 Sep 2002 10:16:58 +0100
On Wed, 25 Sep 2002 14:24:25 -0400 (EDT), Owen Taylor
<otaylor redhat com> said:
Owen> Why not use?
Owen> result = g_convert (string, -1, "UTF-8", "ISO-8859-1", NULL, NULL, NULL);
Owen> (result will be NULL if conversion failed; pass in &error for
Owen> the last argument if you want a string for the reason for
Owen> failure.)
Thanks, I didn't realize it was that easy to use -- I tried iconv
which it calls but it couldn't get it to work (got something wrong, I
expect).
This routine is easier to use than the other as it allocates the
destination string.
Thanks again.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]