lokedhs commented on issue #715: Non-BMP text gets corrupted when inserted into a view URL: https://github.com/apache/couchdb/issues/715#issuecomment-318242265 @davisp thank you for the comments. Here is my test case with `hexdump -C`: ``` $ hexdump -C foo.json 00000000 7b 0a 20 20 20 20 22 74 79 70 65 22 3a 20 22 65 |{. "type": "e| 00000010 6e 63 6f 64 69 6e 67 5f 74 65 73 74 22 2c 0a 20 |ncoding_test",. | 00000020 20 20 20 22 74 65 78 74 22 3a 20 22 54 65 73 74 | "text": "Test| 00000030 20 32 3a 20 f0 9f 98 84 2e 22 0a 7d 0a | 2: .....".}.| 0000003d $ curl -H 'Content-Type: application/json' -X POST http://localhost:5984/foo --data-binary @foo.json {"ok":true,"id":"da82e94f1583360ae4b7392dc8127b4d","rev":"1-0f621627fc374355ae991c7bacc6fbe2"} $ curl -X GET http://localhost:5984/foo/da82e94f1583360ae4b7392dc8127b4d | hexdump -C 00000000 7b 22 5f 69 64 22 3a 22 64 61 38 32 65 39 34 66 |{"_id":"da82e94f| 00000010 31 35 38 33 33 36 30 61 65 34 62 37 33 39 32 64 |1583360ae4b7392d| 00000020 63 38 31 32 37 62 34 64 22 2c 22 5f 72 65 76 22 |c8127b4d","_rev"| 00000030 3a 22 31 2d 30 66 36 32 31 36 32 37 66 63 33 37 |:"1-0f621627fc37| 00000040 34 33 35 35 61 65 39 39 31 63 37 62 61 63 63 36 |4355ae991c7bacc6| 00000050 66 62 65 32 22 2c 22 74 79 70 65 22 3a 22 65 6e |fbe2","type":"en| 00000060 63 6f 64 69 6e 67 5f 74 65 73 74 22 2c 22 74 65 |coding_test","te| 00000070 78 74 22 3a 22 54 65 73 74 20 32 3a 20 f0 9f 98 |xt":"Test 2: ...| 00000080 84 2e 22 7d 0a |.."}.| 00000085 $ curl -X GET http://localhost:5984/foo/_design/test/_view/encoding_test | hexdump -C 00000000 7b 22 74 6f 74 61 6c 5f 72 6f 77 73 22 3a 31 2c |{"total_rows":1,| 00000010 22 6f 66 66 73 65 74 22 3a 30 2c 22 72 6f 77 73 |"offset":0,"rows| 00000020 22 3a 5b 0d 0a 7b 22 69 64 22 3a 22 64 61 38 32 |":[..{"id":"da82| 00000030 65 39 34 66 31 35 38 33 33 36 30 61 65 34 62 37 |e94f1583360ae4b7| 00000040 33 39 32 64 63 38 31 32 37 62 34 64 22 2c 22 6b |392dc8127b4d","k| 00000050 65 79 22 3a 22 64 61 38 32 65 39 34 66 31 35 38 |ey":"da82e94f158| 00000060 33 33 36 30 61 65 34 62 37 33 39 32 64 63 38 31 |3360ae4b7392dc81| 00000070 32 37 62 34 64 22 2c 22 76 61 6c 75 65 22 3a 22 |27b4d","value":"| 00000080 54 65 73 74 20 32 3a 20 f0 9f 98 84 ef bf bd 2e |Test 2: ........| 00000090 22 7d 0d 0a 5d 7d 0a |"}..]}.| 00000097 ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services
