Jump to content

Recommended Posts

Hi

I have arabic text that contains diacritic signs. PHP doesn't find the word if it holds any such sign unless the user writes the signs which rarely happens.

there are around 12 signs.

Note that i do not want to remove these signs from my original text cuz it helps the reader to recognize the meaning.

 

what functions i have to use to exclude these signs from the text BEING searched (stored in my DB)?

 

 

Thanks You

Link to comment
https://forums.phpfreaks.com/topic/114568-diacritic-search-problem/
Share on other sites

Hi

 

as for search code, i think it is smthg normal you saw before

<?php
$kword=$_POST['search'];
$query = "Select * from mag where catID ='T' AND content LIKE '%$kword%' ";
$result = mysql_query($query);
?>

 

i have no problem with the above code, BUT if the $kword will contain any such sign, the search will not find it.

The signs are (I am not sure if you can see them): َ  ً   ُ   ٌ   ِ   ٍ   ْ   ّ

 

Thank you

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.