Closed RaviBolla closed 7 years ago
facing the same problem. Only an UTF-8 conversion in code of the provided results work.
@rvanzon: I am having same problems as you, would you mind sharing your fix?
@streunerlein I use https://github.com/ashtuchkin/iconv-lite to decode the results to utf-8
.
Thanks @rvanzon. I tried iconv directly, no luck as well as with iconv-lite, I guess it is totally due to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding and I don't have access to the original buffers.
I'll check if i can fix couchdb-lucene
https://github.com/streunerlein/couchdb-lucene/commit/b46af6c81696a94e943b44241f5f6246caa62c0a fixes the issue, will create a PR for this
@streunerlein great! thanks :-)
When I enter documents containing utf8-chars like öäüß in a couchdb via Futon and query them afterwards with
curl http://127.0.0.1:5986/_fti/local/test/_design/feedSearch/by_document?q=title:chóc*&limit=5&include_docs=true
I get the following response:
doc.title is not a proper utf8 string, but if you check the fileds.title is a proper utf8 string.