/    Sign up×
Community /Pin to ProfileBookmark

arabic characters

Hi all .
I’m suffering from a sever problem with character encoding .I’m developing a web an arabic website . it is ok . I set the langauge encoding to “windows-1256” and the whole website is working ok with it .but my problem lies with the search .I’m searching in the website database , and some times the results are not correct .because of slight differences and complications with the arabic language .ofcourse the user writes in arabic in the search engine and i search in the database for the same characters using : like%someword% in the select query .but as i said sometimes it brings different data ..
here is the web site and some examples on the problem :
[url]http://www.bahrain-hg.com/guide[/url]
** some words are “شكر” – the results contain the word “سكر” . notice the difference ?
**
another word is ” أحمد ” some of the results will not contain this word . and this is different from ” احمد ” .
is this any way to convert the arabic chatracters to its equivalent in any other unicode that suits the database unicode ?!

NOTE : in order to review the result contents please click on ” مشاهده ” .

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @m_sahaly spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...