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 Tangent

In below statements which statement did you use in your code?

1) "text - abcd “

2) "text – abcd “

would you please try with the second statement and see what output you are getting?

  • 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 tangent (Parson) on Aug 11, 2015 at 15:42 UTC
    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

      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.