[gtkmm] Problem converting utf8 to cp1251 with Glib::convert



Hello,
I have a problem with this converting from ut8 to cp1251:

return (Glib::convert(str, "cp1251", "utf8")).c_str();

this works fine on my machne (archlinux current, gtkmm 2.2.8), but on slackware with the same version of gtkmm I got this error:

(gbdict:20706): glibmm-CRITICAL **: 
unhandled exception (type Glib::Error) in signal handler:
domain: g_convert_error
code  : 0
what  : Conversion from character set 'utf8' to 'cp1251' is not supported


Probably this is not a gtkmm problem, but if you can direct me to any ideas, I will be very hapy :)

-- 
Miroslav Yordanov (a.k.a mironcho)

Linux for Bulgarians (http://linux-bg.org)
Some Perl Scripts (http://mironcho.sourceforge.net)
BeboCD (http://bebocd.sourceforge.net)
sGmixer (http://opensource.netuser.cc/sgmixer)



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