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 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org