Bug#570280: libjson-perl: umlauts problem
Niko Tyni
ntyni at debian.org
Thu Feb 18 13:20:19 UTC 2010
On Wed, Feb 17, 2010 at 09:04:53PM +0100, Thomas Mueller wrote:
> Package: libjson-perl
> Version: 2.17-1
> Severity: normal
> seems that JSON is not "restoring" umlauts correctly. tried to
> use a symfony json service. for example I got "\x{f6}" instead of
> "ö". symfony/php sends it "ascii" encoded. decoding the same json stream
> with php json was no problem.
The "\x{f6}" in your example is produced by Data::Dumper, which
formats non-ASCII characters in this way for clarity.
Adding a 'print Dumper($string);' line shows the output hash $decoded
is identical to the original input hash $string.
Also, using something like
binmode(STDOUT, ":utf8");
print $decoded->{test2};
makes the script output the umlauted character.
Please provide more information about the problem you're seeing.
--
Niko Tyni ntyni@@debian.org
More information about the pkg-perl-maintainers
mailing list