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 t

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 getting

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 ap