neo4j/community — Issue #69: Fix Unicode encoding issues
Author: peterneubauer
Created: 2011-10-21 08:25:32+00:00
State: open

Hey Peter, using the example of my original email, this is the corresponding
json body I post when I created the node:

"{\"uid\":\"12345\",\"name\":\"\\u4f8b\\u5b50\"}"

A single GET query returns the name data (as raw json) as:

\"name\" : \"\xE4\xBE\x8B\xE5\xAD\x90\"\n

which after JSON parse becomes the correct one:

"name" => "例子"

When sending the same request as a POST to /batch, the server returns the
following raw json:

\"name\" :
\"\xEF\xBF\xA4\xEF\xBE\xBE\xEF\xBE\x8B\xEF\xBF\xA5\xEF\xBE\xAD\xEF\xBE\x90\"\n

which after JSON parse becomes the busted result:

"name"=>"￤ﾾﾋ￥ﾭﾐ"

by Nuo Yan