in reply to Re: malformed UTF-8 character in JSON string in perl
in thread malformed UTF-8 character in JSON string in perl

Hi ikegami ,

Thanks for your help. I just executed your script, unfortunately it is giving the same output("text ΤΗτ abcd")

  • Comment on Re^2: malformed UTF-8 character in JSON string in perl

Replies are listed 'Best First'.
Re^3: malformed UTF-8 character in JSON string in perl
by ikegami (Patriarch) on Aug 11, 2015 at 21:13 UTC

    I repeat:

    All you need to do is tell Perl what encoding your terminal expects.

    You specified the wrong encoding. You told Perl your terminal expects UTF-8, but that's wrong. Use the right encoding!