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

I used the second one. It might be easier to use the names - in the following I input plain dash "-", en dash "–" and em dash "—" and the output is plain dash, plain dash, double plain dash:
"text - – —" input "text - - --" output

Replies are listed 'Best First'.
Re^4: malformed UTF-8 character in JSON string in perl
by Yllar (Novice) on Aug 11, 2015 at 15:54 UTC

    Hi Tangent

    Would you please use the statements that I mentioned. I mean please copy and paste in your script and try please.

    If you see in the second statement "-" is not a general hyphen or dash. It is a special symbol.

      It is not really a special symbol, it is an en dash.

      You repeated request to use specific characters is getting tedious to read, especially when your reply is to a post that has already mentioned the use of those characters.

      You repeated request to use specific characters is getting tedious to read, especially when your reply is to a post that has already mentioned the use of those characters.

        Oh, the irony! ;-J

        Please reap one of the duplicate replies.