Help with UTF8 needed.



Hi.
I am trying to use gtk-perl and started with a too simple example: a
dicionary saved directly to a DB file. I'm sending the simple 86 line
of  code in attach in case it can help.

The problem is that if I use latin1 characters in the key for the DB
file, when I retrieve it again, I got a UTF8 string, which is not
interpreted as such by Perl.

It is not simple to explain, so please test the app with the following
test case:
  insert 'cão' as term and 'foo bar' as data
exit the application
  re-enter the applicaiton

Thanks in advance.
Best regards,
 Alberto Simões

Attachment: simple.pl
Description: Text Data

Attachment: dic.glade
Description: Text Data



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