seblucas / cops

Calibre OPDS (and HTML) PHP Server : web-based light alternative to Calibre content server / Calibre2OPDS to serve ebooks (epub, mobi, pdf, ...)
http://blog.slucas.fr/en/oss/calibre-opds-php-server
GNU General Public License v2.0
1.43k stars 229 forks source link

COPS search function with non-english character #425

Closed yche2990 closed 5 years ago

yche2990 commented 5 years ago

Thank you for your amazing app.

I really like the APP and I use the Marvin for reading. It does not support search function by typing chinese characters.

I can generate the search results if using english characters. If I type chinese, it gives the found numbers of entries, however, I cannot choose the entry.

Please help to fix.

glls commented 5 years ago

Hi, it worked for me with the embedded server, I imported a Chinese book to calibre, calibre changed the filename from all.pdf to Yi Yu - Bei Jing Zhong Guo Yu Yan Wen Hua Xue Xiao.pdf and COPS can download the book from this link : http://localhost:8080/library/Bei%20Jing%20Zhong%20Guo%20Yu%20Yan%20Wen%20Hua%20Xue%20Xiao/Yi%20Yu%20%2821%29/Yi%20Yu%20-%20Bei%20Jing%20Zhong%20Guo%20Yu%20Yan%20Wen%20Hua%20Xue%20Xiao.pdf also although I don't understand chinese, I could search and find the book with the COPS web interface.

yche2990 commented 5 years ago

I am not saying that the downloading function is not working. The only issue I have is the search function. If I use the marvin 3 to search by chinese characters, it will not generate any results. If I search in the internet explorer (English language version), the typing will generate search result with "?" not the chinese characters.

seblucas commented 5 years ago

@yche2990 First sorry for the delay, real life took its toll lately :( I'll try to reproduce your problem with a free epub (I'll try this one : https://www.gutenberg.org/ebooks/24264)

seblucas commented 5 years ago

@yche2990 / @glls I either cannot reproduce the problem or don't understand it :

image

Please explain the problem more clearly.

seblucas commented 5 years ago

Closing for now, please open another issue if you can help to understand this problem.