# Can't search patient name in arabic language

**URL:** <https://community.open-emr.org/t/cant-search-patient-name-in-arabic-language/2339>\
**Category:** Management and Administration\
**Created:** [April 7, 2010, 11:27am UTC](https://community.open-emr.org/t/cant-search-patient-name-in-arabic-language/2339 "2010-04-07T11:27:23Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [April 7, 2010, 11:27am UTC](https://community.open-emr.org/t/cant-search-patient-name-in-arabic-language/2339/1 "2010-04-07T11:27:23Z")

</div>

**[ijaraho](https://sourceforge.net/u/ijaraho/)** wrote on [Wednesday, April 07, 2010](https://sourceforge.net/p/openemr/discussion/202505/thread/f331b36d/#8122):

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?

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [April 7, 2010, 4:06pm UTC](https://community.open-emr.org/t/cant-search-patient-name-in-arabic-language/2339/2 "2010-04-07T16:06:56Z")

</div>

**[bradymiller](https://sourceforge.net/u/bradymiller/)** wrote on [Wednesday, April 07, 2010](https://sourceforge.net/p/openemr/discussion/202505/thread/f331b36d/#d6c2):

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

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [April 8, 2010, 7:11am UTC](https://community.open-emr.org/t/cant-search-patient-name-in-arabic-language/2339/3 "2010-04-08T07:11:08Z")

</div>

**[ijaraho](https://sourceforge.net/u/ijaraho/)** wrote on [Thursday, April 08, 2010](https://sourceforge.net/p/openemr/discussion/202505/thread/f331b36d/#085e):

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?

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [April 8, 2010, 7:25am UTC](https://community.open-emr.org/t/cant-search-patient-name-in-arabic-language/2339/4 "2010-04-08T07:25:48Z")

</div>

**[bradymiller](https://sourceforge.net/u/bradymiller/)** wrote on [Thursday, April 08, 2010](https://sourceforge.net/p/openemr/discussion/202505/thread/f331b36d/#0254):

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

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [April 8, 2010, 7:26am UTC](https://community.open-emr.org/t/cant-search-patient-name-in-arabic-language/2339/5 "2010-04-08T07:26:40Z")

</div>

**[bradymiller](https://sourceforge.net/u/bradymiller/)** wrote on [Thursday, April 08, 2010](https://sourceforge.net/p/openemr/discussion/202505/thread/f331b36d/#d1a1):

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

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [April 8, 2010, 9:12am UTC](https://community.open-emr.org/t/cant-search-patient-name-in-arabic-language/2339/6 "2010-04-08T09:12:27Z")

</div>

**[ijaraho](https://sourceforge.net/u/ijaraho/)** wrote on [Thursday, April 08, 2010](https://sourceforge.net/p/openemr/discussion/202505/thread/f331b36d/#12cc):

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

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [April 8, 2010, 10:57am UTC](https://community.open-emr.org/t/cant-search-patient-name-in-arabic-language/2339/7 "2010-04-08T10:57:02Z")

</div>

**[sunsetsystems](https://sourceforge.net/u/sunsetsystems/)** wrote on [Thursday, April 08, 2010](https://sourceforge.net/p/openemr/discussion/202505/thread/f331b36d/#d6dc):

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

Rod  
[www.sunsetsystems.com](http://www.sunsetsystems.com)

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [April 8, 2010, 5:13pm UTC](https://community.open-emr.org/t/cant-search-patient-name-in-arabic-language/2339/8 "2010-04-08T17:13:25Z")

</div>

**[bradymiller](https://sourceforge.net/u/bradymiller/)** wrote on [Thursday, April 08, 2010](https://sourceforge.net/p/openemr/discussion/202505/thread/f331b36d/#b9e8):

ijaraho,  
This has been fixed.

Save this file:[http://openemr.cvs.sourceforge.net/viewvc/](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
