Posted on 2009-03-16 09:11:17-07 by poltsi
perl GTK2::GladeXML and UTF8 problem
Hello,
I have an GUI application created with Glade Interface Designer, which I then use with the GTK2::GladeXML.

The application has a GtkEntry and a GtkTextView. I'm saving the input of these fields to a file, and the problem is, that the text is saved in ISO-8859 encoding, although I have the LANG set to en_US.UTF-8. The perl-program also defines in the beginning 'use utf8;' which AFAIK should force the internal handling of strings to be UTF-8.

This is not necessary the right module, but I haven't been able to Google anything useful, so I'm tracing down from the topmost module.

FWIW my environment is Fedora 10 64bit with latest updates. I have also verified that this behaves in the same manner on Ubuntu 8.10.

I have a sample program which I can put up for download if it helps.

TIA,

Poltsi
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.