in reply to special characters in parsed json rendering badly in browser

Try decoding it with Encode:
use Encode; $event{'desc'} = Encode::decode(utf8 => $decoded->{'description'});
You mention a browser so be sure to specify the charset:
Content-type: text/html; charset=utf-8

Replies are listed 'Best First'.
Re^2: special characters in parsed json rendering badly in browser
by slugger415 (Monk) on Sep 02, 2018 at 19:49 UTC

    result of Encode:

    Wide character at C:/Strawberry/perl/lib/Encode.pm line 228.

    And the script stops there.

Re^2: special characters in parsed json rendering badly in browser
by slugger415 (Monk) on Sep 02, 2018 at 19:58 UTC

    charset in Firefox Windows iso-8859-1

    not sure where that gets specified

      Is the browser showing the contents of a file or the response from a web server ?

      poj

        Contents of the file, I'm just opening it locally.