in reply to Re^5: 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
Except it's kind of hard to understand what the heck the function is doing. 'flagged as utf8', 'store a string internally'... too many implementation details.
This is my very problem with you: You bring up internal details for no reason. And these implementation details just end up confusing people, not helping them.
Except it's kind of hard to understand what the heck the function is doing
That a module is badly documented is not Perl's fault.
Maybe you missed that, ikegami... but I actually never have any problems with mojibake in my Perl code...
Yeah, I know you know you know better.
I've called it 'upgrading' (in quotes) in honor of utf8::upgrade
That doesn't double encode either. That doesn't change the string at all. (Remove the upgrade from your code and you get the same output.)
Not sure why you even mentioned _utf8_on
_utf8_on and utf8::upgrade both end up with an upgraded string, _utf8_one is the one used throughout the docs for Test::utf8, and your comment was wrong whichever function you were talking about.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: JSON::XS (and JSON::PP) appear to generate invalid UTF-8 for character in range 127 to 255
by Anonymous Monk on Dec 07, 2014 at 22:50 UTC | |
by ikegami (Patriarch) on Dec 10, 2014 at 07:30 UTC |