in reply to Re: special characters in parsed json rendering badly in browser
in thread special characters in parsed json rendering badly in browser

see utf8 - The use utf8 pragma tells the Perl parser to allow UTF-8 in the program text in the current lexical scope.

use utf8; use HTML::Entities; my($text) = "Kren’s 89th birthday"; print encode_entities($text), $/; # result right single quote # Kren’s 89th birthday
poj
  • Comment on Re^2: special characters in parsed json rendering badly in browser
  • Download Code

Replies are listed 'Best First'.
Re^3: special characters in parsed json rendering badly in browser
by slugger415 (Monk) on Sep 10, 2018 at 18:45 UTC

    That's it! That's all I needed, thank you!