in reply to JSON character encoding

One thing i worked on a few weeks back, JSON had some weird output. I downloaded and tried JSON::Parse and it did solve my problems. Maybe give it a try with JSON::Parse 'parse_json_safe'. Good luck!