in reply to Re^3: Is JSON::XS doing more things right here (flag)
in thread JSON::XS produces valid utf-8, and JSON doesn't - why?
(Original test script updated). Devel Peek output:
OK SV = PV(0x4178620) at 0x4042060 REFCNT = 1 FLAGS = (PADMY,POK,pPOK,UTF8) PV = 0x4170620 "Hello \342\200\223 World"\0 UTF8 "Hello \x{2013} World" CUR = 15 LEN = 24 SV = PV(0x41785f0) at 0x4049b18 REFCNT = 1 FLAGS = (PADMY,POK,pPOK,UTF8) PV = 0x4170590 "\"Hello \342\200\223 World\""\0 [UTF8 ""Hello \x{2013} World""] CUR = 19 LEN = 40 CRASH SV = PV(0x4178580) at 0x40a2548 REFCNT = 1 FLAGS = (PADMY,POK,pPOK,UTF8) PV = 0x4170600 "Hello \342\200\223 World"\0 UTF8 "Hello \x{2013} World" CUR = 15 LEN = 24 SV = PV(0x41783d0) at 0x40a28d8 REFCNT = 1 FLAGS = (PADMY,POK,pPOK,UTF8) PV = 0x4176460 "\"Hello \342\200\223 World\""\0 [UTF8 ""Hello \x{2013} World""] CUR = 19 LEN = 40
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Is JSON::XS doing more things right here (before)
by tye (Sage) on Nov 12, 2015 at 23:10 UTC |