Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: JSON::XS and unicode

by kimmel (Beadle)
on Sep 08, 2012 at 20:11 UTC ( #992524=note: print w/replies, xml ) Need Help??


in reply to Re: JSON::XS and unicode
in thread JSON::XS and unicode

I am using utf8::all which already takes care of turning on the different unicode parts.

The errors do not come from reading or writing a file. The error is caused by using decode_json() on a string which should work.

Replies are listed 'Best First'.
Re^3: JSON::XS and unicode
by chip (Curate) on Sep 08, 2012 at 21:01 UTC
    Thanks for the pointer to utf8::all, it'll be handy.

        -- Chip Salzenberg, Free-Floating Agent of Chaos

Re^3: JSON::XS and unicode
by philiprbrenan (Monk) on Sep 09, 2012 at 11:04 UTC

    Could you replace the characters in the input to JSON with a's one by one until the offending wide character disappears? We will then know exactly which input character is causing the problem. Thanks.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://992524]
help
Chatterbox?
[atcroft]: (And Feb. is the odd case, because it is 28, unless it is a year divisible by 4, or if it is divisible by both 100 and 400 (at which point it is 29).)
[james28909]: i know but scroll through your calendar on your computer.
[james28909]: i thiught you were going to say make both hands into a fist and puch yourself in the face
[atcroft]: .oO(Sorry, I probably should have said take two normal hands....)
[atcroft]: james28909: No, unless you are a politician, I wouldn't say that (and even if you are, I still probably wouldn't say that).
[james28909]: i mean how hard can it be? its just subtracting days lol
[atcroft]: james28909: What about October 5, 1582?
[stevieb]: atcroft: "Make both hands into fists..."... is something my Ma taught me in our native lang, but I was to ignorant and young to pay attention. Thanks for that :)
[atcroft]: stevieb: Sad to say that I only recently learned that particular trick, but I have since found it very useful.... :)
[james28909]: ill be back with a solution eventually

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2017-04-29 04:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (531 votes). Check out past polls.