in reply to Re^4: Encoding of emoji character
in thread Encoding of emoji character

I do think the table being latin1 is a part of the problem. On the other hand, the application that fills the table Probably the easier solution will be to check for bytes between 0x80 and 0x9F (because these are not defined for ISO 8859-1, the "official" Latin1). If they are not used otherwise in your variant of Latin1, it might be feasible to try it with Encode::decode. What happens, if you insert something like
{ use Encode qw(decode :fallbacks); $text = decode('UTF-8', $text, FB_WARN); }
after reading $text from the database?

Replies are listed 'Best First'.
Re^6: Encoding of emoji character
by dcunningham (Sexton) on Jun 22, 2022 at 03:37 UTC
    Thank you for the suggestion, but it still died with the "Wide character" error using that. The suggestion further down seems to have resolved it though.