Re: Some strings corrupted when inserting into liststore model

2021-10-19 Thread Grant McLean via gtk-perl-list
On Tue, 2021-10-19 at 11:34 +1100, Daniel Kasak via gtk-perl-list wrote: > Right. I found a hack on https://perldoc.perl.org/perlunicode ( which > you directed me to ) that appears to have fixed *this* particular > issue ( though it's not clear what I've then broken as a result ) > Calling: > >

Re: Some strings corrupted when inserting into liststore model

2021-10-18 Thread Daniel Kasak via gtk-perl-list
Right. I found a hack on https://perldoc.perl.org/perlunicode ( which you directed me to ) that appears to have fixed *this* particular issue ( though it's not clear what I've then broken as a result ) Calling: Encode::_utf8_on($_) ... for every value just prior to being pushed into the model

Re: Some strings corrupted when inserting into liststore model

2021-10-18 Thread Jeremy Volkening via gtk-perl-list
On Mon, Oct 18, 2021 at 08:39:36PM +1100, Daniel Kasak via gtk-perl-list wrote: > It's not really clear if there's something *else* I'm > supposed to do to these strings coming out of the DB or not? Typically you need to tell Perl to treat them as UTF-8. Without knowing exactly how you're

Re: Some strings corrupted when inserting into liststore model

2021-10-18 Thread Daniel Kasak via gtk-perl-list
Hi Jeremy. Thanks for the response :) > In the case of your example script, you need 'use utf8;' in the preamble. In > the case of your example script, you > need 'use utf8;' in the preamble. This fixes handling of the hard-coded > unicode characters in the script -- it won't > necessarily fix

Re: Some strings corrupted when inserting into liststore model

2021-10-17 Thread Jeremy Volkening via gtk-perl-list
In the case of your example script, you need 'use utf8;' in the preamble. This fixes handling of the hard-coded unicode characters in the script -- it won't necessarily fix the issue with the strings coming from your database. Are you certain they are being stored in the database correctly?

Some strings corrupted when inserting into liststore model

2021-10-17 Thread Daniel Kasak via gtk-perl-list
Hi all. I'm seeing some strings ( coming from a database ) corrupted when I insert into a liststore model. I've pasted a bare-bones script before which demonstrates the issue ( hard-coded string value in this case ). Any ideas what's happening and how to get the original string rendering?