Can't search patient name in arabic language

ijaraho wrote on Wednesday, April 07, 2010:

hi,
I can’t search in ‘Patient/Client – Management – New/Search’ in Arabic language, although I can write and store in Arabic, can tell how to solve this problem?

bradymiller wrote on Wednesday, April 07, 2010:

hey,
I’m assuming your using Windows with 3.2 (please give this info when report a problem). I confirmed this bug. Does the search at bottom left of screen work for you?
-brady

ijaraho wrote on Thursday, April 08, 2010:

hi,
- I use windows.
- for the second question: I can’t search in the fields: Fname, Lname of ‘Patient/Client – Management – New/Search’ in Arabic language either I wrote complete name or first letter (for example) of the name, is this what you mean?

bradymiller wrote on Thursday, April 08, 2010:

Rod,
The javascript escape() function crushes utf8. better to use the encodeURIComponent() function instead. Figured this out with a CAMOS form issue awhile back. You see any problem with making this change in your openemr/interface/new/new_comprehensive.php search code? Via grep, there’s a couple other places this should be changed.

ijaraho,
At bottom left of screen you can enter a name and then hit the 'Name link, and will search for names. This at least gives you a mechanism to search your patients.

-brady

-brady

bradymiller wrote on Thursday, April 08, 2010:

Rod,
I’ll do this unless you see any obvious flaws.
-brady

ijaraho wrote on Thursday, April 08, 2010:

hi brady,
It work in ’ Any ', not in ’ Name ’ of the bottom left of screen.

sunsetsystems wrote on Thursday, April 08, 2010:

Brady, yes I agree.  My JavaScript manual says encodeURIComponent() (or encodeURI()) is preferred but doesn’t say that escape() fails to work with utf8.  That may be a browser-dependent problem.  Thanks!

Rod
www.sunsetsystems.com

bradymiller wrote on Thursday, April 08, 2010:

ijaraho,
This has been fixed.

Save this file:http://openemr.cvs.sourceforge.net/viewvc/*checkout*/openemr/openemr/interface/new/new_comprehensive.php?revision=1.9.2.1

And copy it over openemr/interface/new/new_comprehensive.php in your local openemr

(it will be included in next 3.2 patch)

-brady