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

There is nothing wrong with Text::Unidecode, but I dont want to use this module. I would like to decode the unicode chars like single quotes, hypen, double quotes,bullets from my input data to ASCII chars.

Can you please print the below two statements and see the outputs.

1) "text - abcd" 2) "text – abcd"

when you print you will get the same out for 1st one. But for second one you will the output like "text ΤΗτ abcd" which I do not want.

  • 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 runrig (Abbot) on Aug 11, 2015 at 16:01 UTC
    There is nothing wrong with Text::Unidecode, but I dont want to use this module.
    Then you are SOL, aren't you? This is the easiest way to accomplish what you're after...So what? Is this homework?