ironcamel/App-p — pull request #10 by creaktive (2013-01-22 01:15:12+00:00)
Title: fixed jd/xd/yd double-encoding UTF-8

Buggy output:

$ p '$x={n=>uc"Станислав"};jd$x;xd$x;yd$x'
{
"n" : "Ð¡Ð¢ÐÐÐÐ¡ÐÐÐ"
}

Ð¡Ð¢ÐÐÐÐ¡ÐÐÐ
---
n: Ð¡Ð¢ÐÐÐÐ¡ÐÐÐ

The expected output:

$ p '$x={n=>uc"Станислав"};jd$x;xd$x;yd$x'
{
"n" : "СТАНИСЛАВ"
}

СТАНИСЛАВ
---
n: СТАНИСЛАВ

The problem is that functions wrapped by jd/xd/yd do return octets, not Unicode stream, while `print` in combination with `utf8::all` treat everything as an Unicode stream.