openkm / document-management-system

OpenKM is a Open Source Document Management System
https://www.openkm.com/
GNU General Public License v2.0
673 stars 297 forks source link

Search Arabic content not working in OpenKM mobile #310

Closed Abu-mazi closed 2 years ago

Abu-mazi commented 2 years ago

I am using openkm 6.3.11 and I'm getting error when I do content search in Arabic from mobile : parseExeotion :cannot pars '??????':'*' or '?' not allowed as first character in Wildcard Query as explained in this demonstration :

https://forum.openkm.com/viewtopic.php?t=24375 attachments

darkman97i commented 2 years ago

@gnujavasergio Possible problem with parameters that require encoding.

gnujavasergio commented 2 years ago

Hello @Abu-mazi

Looking for a solution to your problem, a very simple solution was found that will only be a configuration. Currently this parameter in the configuration: tomcat.connector.uri.encoding = ISO-8859-1 Selección_595

For it to work you have to change to tomcat.connector.uri.encoding = UTF-8 Selección_596

and with that change it will work correctly. Result: arabic

Abu-mazi commented 2 years ago

Hello @gnujavasergio This is to confirm the provided solution is working fine Thanks