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");
p
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" enc
Package: libjson-perl
Version: 2.17-1
Severity: normal
hi
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.
trie
3 matches
Mail list logo