Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^8: JSON::XS (and JSON::PP) appear to generate invalid UTF-8 for character in range 127 to 255

by ikegami (Patriarch)
on Dec 10, 2014 at 07:30 UTC ( [id://1109859]=note: print w/replies, xml ) Need Help??


in reply to Re^7: JSON::XS (and JSON::PP) appear to generate invalid UTF-8 for character in range 127 to 255
in thread JSON::XS (and JSON::PP) appear to generate invalid UTF-8 for character in range 127 to 255

why doesn't utf8::upgrade 'change' the string if it does the following:

Because it's meant not to, and none of that changes the string.

And utf8::upgrade is the one that produces exactly the kind of strings that is_sane_utf8 is intended to catch, so 'upgraded' strings is a good enough description

Nope. It only flags some upgraded strings.

unlike 'double encoding',

Yeah, saying it checks for that would be wrong too. I just took your word for it earlier.

  • Comment on Re^8: JSON::XS (and JSON::PP) appear to generate invalid UTF-8 for character in range 127 to 255

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1109859]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-24 19:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found